> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# base64_decode

> Dekodiert Base64-Eingabe mit Base64 decoder und gibt die dekodierten Bytes als Lua-String zurueck.

<div className="real-function-page">
  ```lua theme={null}
  base64_decode(data: string): string
  ```

  ## Aliase

  * `base64decode`
  * `base64.decode`
  * `crypt.base64.decode`
  * `crypt.base64_decode`
  * `crypt.base64decode`

  ## Argumente

  <ParamField path={"data"} type={"string"} required>
    Base64-Eingabe, die an Base64 decoder uebergeben wird.
  </ParamField>

  ## Rückgaben

  <ResponseField name={"decoded"} type={"string"}>
    Dekodierte Bytes, die als Lua-String mit expliziter Laenge zurueckgegeben werden.
  </ResponseField>

  ## Beispiel

  Dekodiere Base64-Daten und lies den zurueckgegebenen Lua-String.

  ```lua theme={null}
  local encoded = base64_encode("hello world")
  local decoded = base64_decode(encoded)

  print(decoded)
  print(base64decode(encoded))
  print(base64.decode(encoded))
  ```
</div>
