Base64 Encoder & Decoder
Encode text to Base64 or decode Base64 back to readable text, instantly and entirely in your browser.
Nothing you enter here leaves your device — all encoding and decoding happens locally in your browser.
URL-safe Base64 swaps + and /
for - and _, and drops padding,
so it can be used in URLs and filenames.
What is Base64 encoding?
Base64 is a way of representing binary or text data using only
64 printable characters (A–Z, a–z, 0–9, + and /).
It doesn't encrypt or compress data — it just re-encodes it into a
format that's safe to store or transmit through systems that only
reliably handle plain text, such as email, JSON payloads, or HTML
attributes.
When would I use this tool?
- Embedding small images or files as data URIs in CSS or HTML.
- Encoding credentials or tokens for HTTP Basic Auth headers.
- Passing binary data safely inside JSON, XML, or query strings.
- Decoding Base64 strings from APIs, JWTs, or config files to read them.
Standard vs. URL-safe Base64
Standard Base64 can include +, /, and
= padding characters, which have special meaning inside
URLs. URL-safe Base64 replaces those characters so the result can be
used directly in a URL path, query parameter, or filename without
needing extra escaping.
Is this tool private?
Yes. All encoding and decoding happens locally in your browser using JavaScript — your text is never sent to a server.