Base64 to Text Decoder

Decode any Base64 string back into readable text instantly.

Base64 to Text Decoder

Base64 to Text Decoder turns Base64 strings back into plain, readable text - the reverse of encoding.
Decoding happens live as you type or paste, and URL-safe alphabets, missing padding and line breaks are handled automatically.
Nothing you paste ever leaves your own machine!


Load an example

Copy Download
Input: 0 characters | Output: 0 characters
Ready to decode Base64.


Introduction:

Our Base64 to Text Decoder is a free, browser-based utility that turns Base64 strings back into the original text. Paste the encoded string into the input box and the decoded result appears immediately in the output box - no buttons to press, no waiting, no limits.

The tool runs entirely in your browser. Your data is never uploaded to a server, which makes it safe for tokens, configuration values or anything else you would rather not share. It is the perfect companion to our Text to Base64 Converter.


What Is Base64 Decoding?

Decoding is the exact reverse of encoding. Every group of four Base64 characters is mapped back to three bytes of data: each character stands for one of 64 values (A-Z, a-z, 0-9, + and /), so four characters carry 24 bits again. Trailing = padding marks how many bytes of the last group were real data.

A quick example: TWFu decodes back to the word Man, undoing the arithmetic from the encoding side. The same works in every direction - what was folded into text-safe characters comes out byte-for-byte identical.

One reminder worth repeating: Base64 is encoding, not encryption. Decoding simply reveals what was always mechanically recoverable; it does not break any protection, because Base64 never provided one.


What This Tool Does?

Live Decoding: The output updates on every keystroke. You can also click "Decode to Text" after uploading a file or using "Load an example".

Automatic Cleanup: Spaces and line breaks inside the input are ignored while decoding. That means the wrapped output produced by our encoder - or a MIME block copied straight out of an email - decodes cleanly without any manual tidying.

Example: Example 3 below takes a five-line Base64 block and returns the original paragraph as one piece.

URL-Safe & Unpadded Accepted: You do not need to configure anything. Strings that use - and _ instead of + and / (the URL-safe variant used by JWTs) and strings with the trailing = padding removed both decode automatically.

Example: Example 2 below decodes a JWT-style segment, and Example 5 decodes a string whose padding was stripped.

Strict UTF-8 Validation: The tool expects the decoded bytes to be valid UTF-8 text, exactly like a properly encoded string would produce. If the bytes do not form valid text - for instance when someone pastes Base64 of an image instead - you get a clear error instead of pages of meaningless symbols.

File Upload, Copy & Download: Load a .txt, .b64 or .base64 file instead of typing, copy the result to your clipboard with one click, or download it as a file.

Live Statistics: Character counts update as you type, showing the size of both the encoded input and the decoded output.


Examples:

Click Try it on any example below to load it straight into the tool. The text on the right is the exact output the tool produces.

Example 1: Standard Base64 string
Input (Base64)
SGVsbG8sIHdvcmxkISBXZWxjb21lIHRvIFRleHRUb29sei4=
Output (Text)
Hello, world! Welcome to TextToolz.
Example 2: JWT-style payload (URL-safe, unpadded)
Input (Base64)
eyJ1c2VyIjoicmF6aWIiLCJyb2xlIjoiZWRpdG9yIiwiaWQiOjQyfQ
Output (Text)
{"user":"razib","role":"editor","id":42}

No padding and no special characters to fix by hand - paste the middle segment of a JWT and read its JSON payload instantly. (Decoding shows the payload; it does not verify the token's signature.)

Example 3: Multi-line Base64 block
Input (wrapped at 76 characters)
QmFzZTY0IGlzIGV2ZXJ5d2hlcmUgb24gdGhlIHdlYiwgZnJvbSBlbWFpbCBhdHRhY2htZW50cyB0
byBkYXRhIFVSSXMgYW5kIHdlYiB0b2tlbnMuIEJlY2F1c2UgaXQgbWFwcyBldmVyeSB0aHJlZSBi
eXRlcyBvZiBkYXRhIG9udG8gZm91ciBwcmludGFibGUgY2hhcmFjdGVycywgdGhlIGVuY29kZWQg
cmVzdWx0IHRyYXZlbHMgc2FmZWx5IHRocm91Z2ggc3lzdGVtcyB0aGF0IG9ubHkgdW5kZXJzdGFu
ZCBwbGFpbiB0ZXh0Lg==
Output (Text)
Base64 is everywhere on the web, from email attachments to data URIs and web tokens. Because it maps every three bytes of data onto four printable characters, the encoded result travels safely through systems that only understand plain text.

The line breaks disappear automatically: five wrapped lines go in, the original paragraph comes out as one piece.

Example 4: Unicode in many languages & emoji
Input (Base64)
Q2Fmw6kg4piVIOKAkyBHcsO8w59lLCDgpKjgpK7gpLjgpY3gpKTgpYcsIEVzcGHDsWEg4oCTIOCmrOCmvuCmguCmsuCmviDgpp/gp4fgppXgp43gprjgpp8g4oCTIOaXpeacrOiqng==
Output (Text)
Café ☕ – Grüße, नमस्ते, España – বাংলা টেক্সট – 日本語

The multi-byte UTF-8 sequences come back exactly as they went in: Spanish, German, Hindi, Bangla, Japanese and the emoji all survive the round trip intact.

Example 5: Missing padding
Input (Base64, unpadded)
SGVsbG8sIHdvcmxkIQ
Output (Text)
Hello, world!

Many modern systems drop the trailing equals signs; this tool adds them back before decoding, so both forms work.


FAQs:

FAQ 1: Why does my input give an error message?
Answer: Most likely the string contains a character outside the Base64 alphabet, or its length cannot be correct even with padding added (a valid Base64 string never has a remainder of 1 modulo 4). Double-check for stray punctuation such as quotes around the copied value.

FAQ 2: I decoded something and got an error about UTF-8. What happened?
Answer: The string was valid Base64, but the underlying bytes are not text, for example, the first bytes of an image or a zip file. This tool is a text decoder, so it reports that clearly instead of showing thousands of replacement symbols.

FAQ 3: Can I decode a JWT with this tool?
Answer: Yes. Paste the header or payload segment (between the dots) directly into the input box; the URL-safe alphabet and missing padding are handled automatically. Note that decoding only reads the payload - it does not verify the signature.

FAQ 4: Does the tool work with line-wrapped Base64 like in email messages?
Answer: Yes. All spaces and line breaks are ignored during decoding, so blocks copied out of emails or files - however they are wrapped - decode cleanly. Example 3 above shows exactly that.

FAQ 5: Can decoding restore text in Bangla, Hindi, emoji and other non-Latin scripts?
Answer: Yes. The tool interprets the decoded bytes as UTF-8, which is how well-behaved encoders (including our Text to Base64 Converter) store every script. Example 4 above round-trips Spanish, German, Hindi, Bangla, Japanese and an emoji correctly.

FAQ 6: Is my data sent to a server?
Answer: No. The conversion runs entirely in your browser with JavaScript, and nothing you paste or upload is stored anywhere.

TextToolz

The Ultimate Text Tools

TextToolz works seamlessly to let you convert and design your text. It is fast, reliable and secure. Trusted by thousands of users.