Skip to main content

Base64 Decoder

Decode Base64 strings back to plain text or binary; paste a value and see the result instantly.

File Upload

Switch to Encoder
Characters: 0 | Bytes: 0 | MB: 0.00 | Words: 0
Characters: 0 | Bytes: 0 | MB: 0.00 | Words: 0

About Base64 Decoding

What is Base64?

Base64 is a group of binary-to-text encoding schemes that represent binary data in an ASCII string format.

Common Uses

  • • Embedding images in HTML/CSS
  • • Storing binary data in JSON
  • • Email attachments
  • • API data transmission

Decode Base64-encoded data back to its original text or binary format. Convert Base64 strings to readable text, restore binary files, and extract original content from encoded data. Supports text decoding and file downloads, making it easy to work with Base64-encoded data from APIs, data URIs, and storage systems.

What is Base64 Decoder?

Base64 decoding is the reverse process of Base64 encoding. It converts Base64-encoded strings (which use 64 ASCII characters) back to their original binary or text format. This is necessary when you receive Base64-encoded data and need to access the original content, such as images embedded in HTML, API responses, or stored binary data.

Common Use Cases

  • Decoding Base64-encoded images from data URIs
  • Extracting original data from API responses
  • Decoding Base64-encoded file attachments
  • Converting Base64 strings back to text for reading
  • Restoring binary files from Base64 storage
  • Decoding credentials or tokens from Base64 format
  • Extracting data from Base64-encoded database fields

How It Works

The Base64 decoder takes the Base64 string and processes it in reverse: it maps each Base64 character back to its 6-bit value, groups four characters into 24-bit chunks, and converts them back to the original 8-bit bytes. The decoder handles padding characters (=) correctly and can output either text (if the original was text) or binary data (for files). UTF-8 decoding is applied for text output to handle international characters properly.

Examples

Decoding simple text

Input:
SGVsbG8sIFdvcmxkIQ==
Output:
Hello, World!

Decoding a Base64-encoded email

Input:
dXNlckBleGFtcGxlLmNvbQ==
Output:
user@example.com

ThenCatch is a free developer toolkit. Learn more about us.