Base64 Decoder - Decode Base64 to Text Online
Paste Base64 and read it as text. UTF-8 accents and emoji, URL-safe Base64, data URIs and line-wrapped input are handled, and invalid input is pointed out by line and column.
Loading Base64 Decoder...
How to Decode Base64 to Text - Step by Step Guide
Paste Your Base64 String
Start by pasting your Base64 encoded string into the input editor. The tool accepts both plain Base64 strings and data URI format strings.
Example: Base64 String
A simple Base64 encoded text:
SGVsbG8sIFdvcmxkIQ== # Decodes to: "Hello, World!"
Automatic Decoding
The tool automatically validates and decodes your Base64 string to plain text as soon as you paste it. No button clicks required - decoding happens instantly.
Copy or Download
View the decoded text in the output editor. Click "Copy" to copy it to your clipboard, or "Download" to save it as a text file.
What is Base64 Decoding?
Base64 decoding is the reverse process of Base64 encoding, converting Base64 encoded strings back to their original binary or text format. The decoder transforms the 64-character ASCII representation back into the original data following RFC 4648 standards.
When you decode Base64, groups of 4 Base64 characters are converted back into 3 bytes of original data. The W3C Base64 specification defines the decoding algorithm used in modern browsers through the atob() function, ensuring consistent results across platforms.
How Base64 Decoding Works
The decoding algorithm maps each Base64 character back to its 6-bit binary value, then combines these values to reconstruct the original bytes. Padding characters (=) indicate how many bytes were in the final group, ensuring accurate reconstruction.
Modern implementations prioritize security and efficiency. Our tool uses secure client-side processing and supports various Base64 formats including standard Base64, MIME Base64, and data URIs commonly used in REST APIs.
Frequently Asked Questions
How do I decode a Base64 string?
Paste it into the input editor. The text appears on the right about a third of a second after you stop typing, and Copy or Download gives you exactly what is shown. To go the other way, use the Base64 Encoder.
What if the Base64 holds an image or a file instead of text?
Then there is no text to show, and the page tells you so instead of printing a screen of junk characters. Images, PDFs, ZIPs and other binary data are better handled by Base64 to File, Base64 to Image or Base64 to PDF, which give you the actual file back.
Can I paste a data URI, a quoted string or wrapped lines?
Yes. A data:...;base64, prefix is skipped, surrounding quotes from JSON or code are removed, and line breaks and spaces (as in MIME email bodies or PEM-style wrapping) are ignored. A leading byte order mark from a text file is dropped too.
Do accents, emoji and other non-English text decode correctly?
Yes. The decoded bytes are read as UTF-8, so Sm9zw6kg8J+YgA== shows as José 😀. Plain atob() in JavaScript would give you José ð instead, because it treats every byte as a separate Latin-1 character.
Why does it say my Base64 is invalid?
The message says what is wrong and where. A character outside A-Z, a-z, 0-9, + and / (or - and _ for URL-safe Base64) is reported with its line and column. An = sign in the middle usually means two strings were pasted together, and a length that can't be complete means the string was cut off when you copied it.
Which Base64 variants are supported?
Standard Base64 from RFC 4648, the URL-safe Base64URL alphabet used in JWTs and many APIs (padding is optional), MIME Base64 with line breaks, and data URIs.
Is the text I paste sent anywhere?
No. Decoding runs in your browser with JavaScript and nothing is uploaded to our server. Keep in mind that Base64 is not encryption: anyone who has the string can read it, so treat decoded tokens, keys and passwords as secrets.
Is there a size limit?
There's no fixed cap, but everything happens inside your browser tab, so memory is the real limit. A few megabytes of Base64 decode without trouble; very large strings make the editor slow to scroll.
Related Tools
Base64 Encoder
Encode text and data to Base64 format
Base64 Validator
Validate Base64 encoded strings with detailed format checking and content type detection
Base64 URL Encoder
Encode text to URL-safe Base64 format for JWT tokens, OAuth, and web APIs
Base64 URL Decoder
Decode URL-safe Base64 strings from JWT tokens, OAuth responses, and API data
Image to Base64
Convert images to Base64 encoded strings for embedding in HTML, CSS, and APIs
Base64 to Image
Decode Base64 encoded strings to view and download images (PNG, JPG, GIF, SVG)