Free · No sign-up · Private
Base64 Decoder
Decode a Base64 string back to readable text.
Quick answer
Paste a Base64 string and the decoder converts it back to text immediately, reading the bytes as UTF-8 so accented letters and emoji appear correctly. SGVsbG8sIFVOU0VFTiBPRkZFUlMh decodes to “Hello, UnseenOffers!”. Invalid characters or a wrong length show an error instead.
Hello, UNSEEN OFFERS!
Step by step
How to use the Base64 Decoder
01
Enter a Base64 string.
02
See the decoded text.
03
Copy the result.
Worked examples
Decoding examples
| Base64 | Decoded text |
|---|---|
| TWFu | Man |
| SGk= | Hi |
| aGVsbG8gd29ybGQ= | hello world |
| Y2Fmw6k= | café |
Good to know
How Base64 decoding works
Each Base64 character stands for 6 bits. The decoder joins them into 8-bit bytes, so every 4 characters become 3 bytes, and the = padding at the end tells it how many bytes the last group holds. The bytes are then read as UTF-8 text.
Base64URL and JWTs
URL-safe Base64 replaces + with - and / with _ and often drops the padding. JSON Web Tokens use it; paste a token into the JWT decoder to read its header and payload directly.
Where you meet Base64
Email attachments, data URLs in HTML and CSS, API keys in configuration files, the user:password part of Basic authentication headers, and the parts of a JSON Web Token are all Base64. Decoding them shows the original text, which is useful when debugging a request or checking what a configuration value contains.
FAQ
Frequently asked questions
Why do I get “Invalid Base64 input”?
The string contains characters outside the Base64 alphabet, or it was cut off. Remove spaces or line breaks added by email clients and try again.
Can I decode an image?
This tool shows text. A Base64 image decodes to binary data, which appears as unreadable characters.
More developer tools
Related tools
URL Encoder
Percent-encode text for safe use in a URL.
Open toolURL Decoder
Decode percent-encoded URLs back to readable text.
Open toolJWT Decoder
Decode a JSON Web Token and inspect its header and payload.
Open toolUnix Timestamp Converter
Convert between Unix timestamps and human-readable dates.
Open tool