Base64 Decoder

Decode Base64 to text.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Paste a Base64 string and get the text it represents. Spaces and line breaks are ignored, and the result is read as UTF-8, so accents and emoji come back correctly.

How to use

1
Step 1
Paste the Base64 string.
2
Step 2
Press Run.
3
Step 3
Copy the decoded text.

How it works

The string is stripped of whitespace, decoded to bytes, and those bytes are read as UTF-8 text. If the bytes are not text (for example an image or a zip file) the result looks like garbage. Anything outside the standard alphabet is rejected with an error.

Worked example

Decode a greeting

Input
SGVsbG8sIFdvcmxkIQ==
Output
Hello, World!
Walkthrough
The 20 characters decode back to the 13 bytes of Hello, World!

Limitations

  • URL-safe Base64 (with - and _) is rejected. Swap - for + and _ for / first.
  • Binary content is shown as text and will look scrambled; there is no file download.
  • Data URIs must have the data:...;base64, prefix removed.

Questions

How do I decode Base64?
Paste the string and press Run to see the original text.
Why does decoding fail with an invalid character error?
The string contains characters outside A-Z a-z 0-9 + / =. URL-safe strings with - or _ need converting first.
Why is the decoded text unreadable?
The data is probably binary, such as an image or compressed file, rather than UTF-8 text.
Is my Base64 sent anywhere?
No. It is decoded locally in your browser.

Features

  • UTF-8 aware
  • Whitespace ignored
  • Runs in your browser

Guides

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • How base64 encoding works

    Andrew Schmelyun

    Clear mental model for Base64 tools and data-URL workflows.

    Watch on YouTube
  • Learn Regular Expressions - Crash Course

    freeCodeCamp.org

    Regex primer for tester and explainer pages.

    Watch on YouTube