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.

Base64 DecoderRuns in your browser
Decoded text
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

Base64Decoded text
TWFuMan
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.