Loading tool...
How to Decode Base64 to Text
Somebody sent you a string of letters that makes no sense, or an email shows a block of gibberish where the message should be. If it is Base64, the words are still in there. Paste it below to read them.
Paste the Base64 you received
Paste the encoded block into the input panel. Line breaks, quotes, a data: prefix and URL-safe Base64 are all accepted. The Sample button loads a short encoded message if you just want to see how it works.
Example: a Base64 string
SGVsbG8gV29ybGQhIFRoaXMgaXMgYSBCYXNlNjQgZGVjb2RpbmcgZXhhbXBsZS4=
Content-Transfer-Encoding: base64, not the header lines above them.= at the end.data:text/plain;base64, link can be pasted with its prefix.Read the plain text
A moment after you stop typing, the text appears in the output panel, exactly as it was written before it was encoded. If a character does not belong in Base64, the page names its line and column. If the data turns out to be a file, it tells you so instead.
What the example decodes to
Hello World! This is a Base64 decoding example.
00501 stay exactly as in the original.Copy or save it
Copy puts the text on your clipboard, and Download saves it as decoded-text.txt in UTF-8. Both use what is in the input right now.
Why Text Ends Up in Base64
Base64 writes any data using only 64 safe characters: A to Z, a to z, 0 to 9, + and /. Email was built for plain English text, so mail programs still wrap attachments and many non-English messages in Base64 to get them through intact. Web forms, logs and QR codes use it for the same reason.
Every four Base64 characters stand for three bytes. Decoding gives those bytes back, and reading them as UTF-8 turns them into letters again. That second step is why a plain decoder can show é where you expect é: it skipped the UTF-8 part. This page does both.
Frequently Asked Questions
How can I tell that a piece of text is Base64?
It looks like a long run of random letters and digits with no spaces, sometimes with + and / mixed in and one or two = signs at the very end. The length is usually a multiple of four, and email programs break it into lines of 76 characters. A few starts give away what is inside: eyJ is usually JSON, PD94 is XML, JVBER is a PDF and iVBORw0KGgo is a PNG image.
I found Base64 inside an email. What do I paste?
Only the encoded lines. In the raw message source an attachment or text part starts with a few header lines such as Content-Type and Content-Transfer-Encoding: base64, then a blank line, then the block of Base64. Copy that block, from its first line down to the line before the next boundary (the line that starts with --). The line breaks can stay in. If you paste the header lines too, the page points at the first character that is not Base64.
Someone sent me a Base64 message or I copied it from a log or a QR code. Will it work?
Yes, as long as the whole string came across. Quotes around it, line breaks, a data: prefix and the URL-safe variant with - and _ are all fine. The most common problem is a string that got cut off when it was copied, for example by a chat app or a log viewer that shortens long lines. In that case the page tells you the value looks incomplete instead of showing half a message.
Will accented letters, other alphabets and emoji come out right?
Yes. The decoded bytes are read as UTF-8, which is what almost every system uses today, so w4dhIHZhIHRyw6hzIGJpZW4= reads Ça va très bien and 44GT44KT44Gr44Gh44Gv44CB5LiW55WMIPCfkYs= reads こんにちは、世界 👋. Older software sometimes writes text in Windows-1252 instead. When the bytes are not valid UTF-8 the page reads them that way and adds a note, so check that the accents look right.
It says the data is not text. What does that mean?
The Base64 itself was fine, but what it holds is a file rather than words: a picture, a PDF, a Word document, a ZIP archive or similar. Turning those bytes into letters would only give you a screen of garbage. Base64 to File saves the decoded bytes as a real file you can open with the right program.
Is Base64 a kind of encryption, and does my text go anywhere?
No, Base64 hides nothing. It only changes how the bytes are written so they can travel through email or a text field, and anyone can turn it back, exactly as this page does. If a message in Base64 contains a password, treat that password as exposed. The decoding happens in your browser: what you paste is not uploaded or kept, and a reload starts with an empty editor.
Related pages: Text to Base64 · Base64 to File · Base64 to Image
Related Tools
Text to Base64
Encode plain text to Base64 format for APIs and data transmission
JSON to Base64
Convert JSON data to Base64 format with validation
Base64 to JSON
Convert Base64 encoded data to JSON format with validation
XML to Base64
Convert XML data to Base64 format with validation
Base64 to XML
Convert Base64 encoded data to XML format with validation
YAML to Base64
Convert YAML data to Base64 format with validation