Base64 Decoder
Decode Base64 to text.
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
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?
Why does decoding fail with an invalid character error?
Why is the decoded text unreadable?
Is my Base64 sent anywhere?
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 YouTubeLearn Regular Expressions - Crash Course
freeCodeCamp.org
Regex primer for tester and explainer pages.
Watch on YouTube
- encodeURIComponent()
MDN
What browser URL encoding actually does—maps to url-encode tools.
- Introduction to JSON Web Tokens
jwt.io
JWT structure for decoder and debugger pages.