200 tools

Utilities · · 4 min read

How to Base64 Decode Text

Use the Base64 Decode tool to turn Base64 — standard or URL-safe, padded or not — back into readable text, right in your browser.

To Base64 decode text, open Base64 Decode, paste the Base64 string into the input, and read the decoded text in the output — it works instantly in your browser and accepts both standard and URL-safe Base64, padded or not.

What Base64 Decode does

Base64 Decode reverses Base64 encoding: it takes a string built from the Base64 alphabet (A–Z, a–z, 0–9, +, /, and padding =) and converts it back to the original text. Toolbench's version is deliberately low-friction — there are no toggles to configure. Before decoding, it strips any whitespace from the input (so Base64 wrapped across multiple lines decodes fine), converts URL-safe characters back to standard ones (- becomes +, _ becomes /), and pads the string with = up to a multiple of 4 if padding is missing. That means you can paste in standard Base64, URL-safe Base64, padded or unpadded, with line breaks or without, and it just works.

How to Base64 decode text with Toolbench

  1. Open Base64 Decode.
  2. Paste or type the Base64 string into the input panel.
  3. Read the decoded text in the output — it updates as you type.
  4. Click Copy to copy the result, or use Send to → to pass it straight into another tool.

There's nothing to configure: the tool auto-detects and normalizes both standard and URL-safe Base64 before decoding.

A real worked example

This input:

SGVsbG8sIHdvcmxkIQ==

decodes to:

Hello, world!

That's the reverse of standard Base64 encoding: every 4 characters of input map back to 3 bytes, and the trailing == padding is dropped once decoding is done.

Decoding URL-safe and unpadded Base64

Because the tool swaps - for + and _ for /, and re-pads with = before decoding, you don't need to know which flavor of Base64 you're dealing with. For example, the URL-safe, unpadded string

c3ViamVjdHM_PW1hdGgmZW5nbGlzaA

decodes to the same result as its standard, padded equivalent:

subjects?=math&english

Paste either version in and you get the same output — Toolbench handles the normalization automatically.

What happens with invalid input

If the input isn't valid Base64 — wrong characters, or a string whose decoded bytes aren't valid UTF-8 text — the tool shows the error "Input is not valid Base64 text" instead of garbage output. This also means Base64 Decode is built for text: if you Base64-encode something that isn't valid UTF-8 (like an image or other binary file) and try to decode it here, you'll get that same error, because the decoder strictly validates the result as UTF-8. For binary data such as images, use Image to Base64 instead, which works with data URIs rather than plain text.

Reference: what the tool normalizes automatically

Input quirk How Base64 Decode handles it
Whitespace or line breaks in the input Stripped before decoding
URL-safe characters (-, _) Converted back to standard (+, /)
Missing = padding Added automatically up to a multiple of 4
Invalid Base64 or non-UTF-8 result Shows "Input is not valid Base64 text"

Tips and common mistakes

  • You don't need to know the flavor of Base64 in advance. Standard or URL-safe, padded or not — paste it in and the tool normalizes it before decoding.
  • Base64 decoding only recovers text here. If you're decoding something that represents binary data (an image, a font, a compiled file), this tool will likely error, because it requires the result to be valid UTF-8 text.
  • An error doesn't always mean the string is "wrong." It might just not be text — check the source of the Base64 before assuming it's corrupted.
  • Whitespace is safe to leave in. You can paste Base64 that's wrapped across multiple lines (for example, from an email or certificate) without cleaning it up first.
  • Decoding doesn't guess an encoding like UTF-16 or Latin-1. The output is always decoded as UTF-8.
  • Base64 Encode — go the other direction and turn text into Base64.
  • Base64 / URL Encode — switch between Base64, URL percent-encoding, and HTML entity encoding in one tool.
  • Image to Base64 — encode an image file as a Base64 data URI instead of decoding text.
  • Hash Generator — compute an MD5 or SHA hash of a string instead of decoding it.

Frequently asked questions

Does this tool need to know if my Base64 is URL-safe or standard?

No. It automatically converts URL-safe characters (- and _) back to the standard alphabet (+ and /) before decoding, so either format works without any setting to change.

Why am I getting "Input is not valid Base64 text"?

Either the input contains characters outside the Base64 alphabet, or the decoded bytes aren't valid UTF-8 text. The second case happens if you're trying to decode Base64 that actually represents binary data, like an image, rather than plain text.

Do I need to add the = padding myself?

No. If padding is missing, Toolbench adds it automatically before decoding, so unpadded Base64 (common in URLs and tokens) decodes correctly either way.

Can I decode Base64 that's split across multiple lines?

Yes. Whitespace and line breaks are stripped from the input before decoding, so wrapped Base64 — like the kind produced by certain email or certificate formats — decodes the same as a single unbroken line.

Is my text sent to a server?

No. Decoding happens in your browser as you type. Signed-out visitors have nothing saved; if you're signed in, your input syncs privately to your account.

More guides

All guides →