> ## 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

> Base64 decoder で Base64 入力をデコードし、デコードされたバイトを Lua string として返します。

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

  ## エイリアス

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

  ## 引数

  <ParamField path={"data"} type={"string"} required>
    Base64 decoder に渡される Base64 入力。
  </ParamField>

  ## 戻り値

  <ResponseField name={"decoded"} type={"string"}>
    明示的な長さを持つ Lua string として返されるデコード済みバイト。
  </ResponseField>

  ## 例

  Base64 データをデコードし、返された 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>
