Developer Base64 tool

Base64 Decoder

Decode Base64 or Base64URL into UTF-8 text, files, binary bytes and supported images. Everything runs locally in your browser.

Input

Paste Base64 or Base64URL

Auto detect

Paste raw Base64, unpadded Base64URL, or a data:...;base64, URL. Whitespace and line breaks are accepted.

Try an example:

Output

Decoded data

Waiting for input
Decoded output will appear here

Text is shown directly. Images are previewed. Other binary data can be inspected as hexadecimal and downloaded as a file.

Decoder reference

Decode text, binary data and files from Base64

A generic Base64 decoder should not assume that every payload is an image. Decoded bytes may represent UTF-8 text, a PDF, an archive, an image or another binary format, so the useful next step is to inspect the decoded bytes before deciding how to display or download them.

Base64URL is a web-safe variant used in tokens and URLs. It replaces + with - and / with _, and padding is often omitted. Normalizing those characters and restoring valid padding allows the browser to decode many Base64URL values without changing the underlying bytes.

Base64URL differences

  • - replaces +
  • _ replaces /
  • Trailing = padding may be omitted
  • Decoded bytes remain binary data

Choose output by content

  • Render valid UTF-8 as text when appropriate.
  • Preview supported image bytes as an image.
  • Download binary payloads when text rendering would corrupt or misrepresent them.
Base64Base64URLUTF-8binaryfile signatures