Base64 Decode
Paste a Base64 string and this tool turns it straight back into readable text as you type. It reads multi-byte UTF-8 correctly, so accents and emoji survive the round trip, and it accepts the base64url variant that uses '-' and '_' with the padding removed. Nothing is uploaded, so you can safely paste tokens and config values.
How to decode Base64
- Paste your Base64 or base64url string into the 'Base64 input' box, or click 'Load sample' to try one.
- Watch the decoded text appear live in the 'Decoded text' box as you type or paste.
- Ignore any surrounding line breaks or spaces; they are stripped before decoding.
- If a red error appears, check for characters outside the Base64 alphabet or a truncated string.
- Use the character count to confirm the length, then click Copy or Download to save it as decoded.txt.
Examples
Decode a plain greeting
aGVsbG8=
hello
Decode UTF-8 text with an emoji
SGVsbG8sIFdvcmxkISDwn5qA
Hello, World! π
Decode base64url with no padding
PGh0bWw-Pw
<html>?
Frequently asked questions
How does Base64 decoding work?
Base64 packs three bytes into four text characters drawn from a 64-symbol alphabet. Decoding reverses that: every group of four characters rebuilds three original bytes, which are then read as UTF-8 text to give you back the source string.
What is the difference between Base64 and base64url?
They encode the same bytes but pick different symbols for the last two alphabet slots. Standard Base64 uses '+' and '/', while base64url swaps in '-' and '_' so the string is safe inside URLs and filenames, and it often drops the '=' padding.
Does it support base64url input?
Yes. The tool converts '-' back to '+' and '_' back to '/', then re-adds the '=' padding to reach a multiple of four before decoding, so you can paste a base64url token exactly as you found it.
What happens if decoding fails?
If the string contains characters outside the Base64 alphabet, or its length cannot be re-padded to a multiple of four, a red error message appears and the output stays empty. Check for stray characters, missing pieces, or text that was never Base64 in the first place.
Does it handle emoji and accented characters?
Yes. The decoded bytes are passed through a real UTF-8 decoder, so multi-byte sequences like Γ©, Γ±, or π reassemble correctly instead of turning into garbled symbols.
Do line breaks or spaces in the input matter?
No. Leading and trailing whitespace is trimmed and any internal spaces, tabs, or line breaks are removed before decoding, so Base64 that was wrapped across several lines still decodes cleanly.
Is Base64 secure or encrypted?
No. Base64 is an encoding, not encryption. Anyone can reverse it in seconds, exactly as this tool does, so never rely on it to hide passwords, keys, or other secrets.
Can I decode a Base64 image or PDF here?
This tool decodes to text and shows the result in a textarea, so it suits strings that represent UTF-8 text such as JSON, tokens, or messages. Binary payloads like images decode to raw bytes that will not render as readable characters.
Is my data private?
Yes. Decoding happens entirely in your browser using built-in JavaScript, and nothing you paste is ever sent to a server, so sensitive tokens never leave your device.
Learn more
- Base64 vs base64url: padding and URL-safe encoding
How standard Base64 and the URL-safe base64url variant differ, why padding exists, and when each one is the right choice for your data.
Related tools
Base64 Encode
Encode text to Base64 online. UTF-8 safe, handles emoji and accents, with an optional URL-safe (base64url) mode. Runs in your browser, nothing uploaded.
URL Decoder
Decode URL-encoded text online. Turn %20, %26 and + back into readable characters, with full unicode support. Free, instant and runs in your browser.
.env to JSON
Convert a .env file to JSON, or JSON back to .env. Parses KEY=value lines, comments, quotes and export. Runs entirely in your browser.
ASCII Table
Full ASCII table for all 128 codes with decimal, hex, octal and binary values, character names and descriptions. Search by code, hex or character.
Aspect Ratio Box Generator
Generate CSS for a responsive aspect-ratio container. Use the modern aspect-ratio property or the padding-top fallback, then copy the ready code.
Aspect Ratio Calculator
Calculate aspect ratios fast. Enter a ratio like 16:9 and one dimension to get the other, or enter width and height to simplify the ratio.