Monitoring
Solutions
Resources
Free Tools
Pricing
Free Tools / Base64 Encode / Decode

Base64 encode / decode

Convert text to Base64 or decode a Base64 string back to readable text. Runs locally in your browser — nothing is uploaded.

Encoding is UTF-8 safe — emoji and non-Latin text round-trip correctly.

What Base64 encoding is for

Base64 turns binary or text data into a set of 64 plain ASCII characters (A–Z, a–z, 0–9, +, /). It doesn't compress or encrypt anything — it just makes data safe to put somewhere that only expects text, like an email body, a URL, a JSON field, or an HTTP header.

Email attachments

MIME email encodes binary attachments as Base64 so they survive being sent through text-only mail systems.

Basic Auth headers

HTTP Basic Authentication sends username:password as a Base64 string in the Authorization header.

Data URLs

Small images and fonts can be embedded directly in CSS or HTML as data:image/png;base64,... to skip an extra request.

API payloads

Some APIs expect binary fields (like file uploads or signatures) as Base64 text inside a JSON body.

Frequently asked questions

Is Base64 the same as encryption?

No. Base64 is an encoding, not encryption — anyone can decode it instantly, with no key required. Don't use it to protect secrets.

Why does the output sometimes end with = signs?

The = characters are padding. Base64 processes data in 3-byte chunks; padding fills the last chunk when the input length isn't a multiple of 3.

Does this tool work with files or images?

This version handles text input. For files, the same Base64 principle applies, but you'd need a file-reading step first — let us know if that's something you need and we'll consider adding it.

Is my data sent anywhere?

No. Encoding and decoding both happen locally in your browser using standard JavaScript — nothing is uploaded to a server.

More free tools

Watching text formats is easy. Watching your infrastructure isn't — until now.

Upzilla monitors uptime, servers, and APIs from one dashboard. 10 monitors free, no card required.

Start monitoring free →