Skip to content

Base64 to ASCII

Decode a Base64 string into plain ASCII text, with a warning when the decoded data contains non-ASCII characters.

Runs in your browser Free, no sign-up
Loading tool workspace...

What is Base64 to ASCII?

This Base64 to ASCII converter decodes a Base64 string and shows the result as plain ASCII text. Many protocols and systems Base64-encode short ASCII values, such as tokens, IDs, header values and legacy configuration, and decoding them lets you see what they contain.

The converter is strict about ASCII: if the decoded data contains bytes outside the 7-bit ASCII range, it tells you so instead of showing garbled characters. That makes it useful for checking whether a value is really plain ASCII; for UTF-8 text with accents or emoji, use the Base64 Decode & Encode tool, which decodes UTF-8.

How to use Base64 to ASCII

  1. Paste the Base64 string into the input panel.
  2. The decoded ASCII text appears in the output panel.
  3. If you see a non-ASCII warning, decode the string with the Base64 Decode & Encode tool instead.
  4. Copy the decoded text.

Key features

  • Decodes Base64 to plain 7-bit ASCII text
  • Warns when the data contains non-ASCII bytes
  • Instant output as you paste
  • Clear error for invalid Base64
  • Runs entirely in your browser

Common use cases

  • Decoding Base64 tokens, IDs and header values
  • Checking whether encoded data is plain ASCII
  • Reading Base64 values in legacy configuration files
  • Decoding credentials from HTTP Basic authentication headers
  • Inspecting Base64 strings found in logs

Technical details & standards

The input is decoded with the browser's atob(), which follows the standard Base64 alphabet of RFC 4648 and maps each decoded byte to one character. If any decoded byte is 128 or higher, the data is not 7-bit ASCII and an error is shown rather than misleading output.

The input must be standard Base64: surrounding whitespace is trimmed, but URL-safe characters (- and _) and line breaks inside the string are not accepted. Use Base64 Repair to clean up a damaged string first.

Frequently asked questions

What is the difference between Base64 to ASCII and Base64 to text?

ASCII covers only 128 basic characters. Base64 to text decoders usually decode UTF-8, which supports every language and emoji. This tool decodes ASCII and warns about anything else; the Base64 Decode & Encode tool handles UTF-8.

Why do I get a non-ASCII error?

The decoded data contains bytes above 127: it is UTF-8 text with special characters, or binary data such as an image or compressed file. Decode it with the Base64 Decode & Encode tool or File to Base64.

How do I decode Base64 on the command line?

On Linux and macOS run echo 'SGVsbG8=' | base64 --decode (or base64 -D on older macOS). In PowerShell use [Text.Encoding]::ASCII.GetString([Convert]::FromBase64String('SGVsbG8=')).

Why is my Base64 string invalid?

It may contain spaces, line breaks or URL-safe characters (- and _), or be missing its = padding. Clean it with Base64 Repair, then decode it again.

Is my data safe?

Processing happens locally in your browser. Tool input is not sent to CodeUnpack servers.

Does it work offline?

Once the page has loaded, this tool can process input without an internet connection.

More encoders & decoders tools

View all