Base64 encode & decode
Paste text to encode it to Base64, or paste Base64 to decode it back to plain text. It's UTF-8 safe, so emoji and any language work, with an optional URL-safe alphabet. Everything runs in your browser.
Encode or decode
Open the tool in the mode you need — each has its own page:
How to encode or decode Base64
- Choose Encode (text → Base64) or Decode (Base64 → text).
- Type or paste your text into the box; the result updates as you type.
- Copy the result — turn on URL-safe if you need it for a URL or filename.
About Base64
Base64 maps every three bytes of data onto four printable characters, which lets binary content travel through systems that only handle text — data-URI images, email attachments, JSON payloads, basic-auth headers and token formats. This converter is UTF-8 safe, so accented letters, non-Latin scripts and emoji round-trip correctly rather than getting mangled.
Remember that Base64 is reversible by design: it's not a way to protect information, just a way to make it text-safe. Everything here is computed in your browser with no upload, so it's fine to encode or decode sensitive snippets without them touching a server.
Frequently asked questions
What is Base64?
Base64 is a way of representing data using just 64 plain ASCII characters (A–Z, a–z, 0–9, + and /). It's used to embed images in HTML or CSS as data URIs, to carry binary data through email and JSON, and inside tokens like JWTs — anywhere text-only channels need to move arbitrary data safely.
Is Base64 encryption?
No. Base64 is encoding, not encryption — there's no key and anyone can decode it back instantly. Never use it to hide passwords or secrets; it only makes data text-safe, not private.
What is URL-safe Base64?
URL-safe Base64 swaps the + and / characters for - and _ and drops the trailing = padding, so the result can be dropped straight into a URL, query string or filename without being escaped.
Is my text uploaded anywhere?
No. Encoding and decoding happen entirely in your browser, so whatever you paste never leaves your device.