Base64 encode and decode
Encode text to Base64 or decode it back. UTF-8 safe and 100% in your browser.
Runs 100% in your browserHow to encode or decode Base64
- Choose a mode. Pick Encode to convert text to Base64, or Decode to convert it back.
- Enter your text. Type or paste into the input box; the result appears instantly.
- Copy the result. Click Copy to grab the output.
About Base64
Base64 turns arbitrary bytes into a safe, text-only representation by mapping every three bytes to
four ASCII characters. It's everywhere in web development: data URLs (data:image/png;base64,…),
JSON Web Tokens, Basic Auth headers, and email attachments. Because it inflates size by about a
third and offers no confidentiality, use it for transport and embedding — not for storage efficiency
or security.
Frequently asked questions
- Base64 represents binary data using 64 printable ASCII characters (A–Z, a–z, 0–9, + and /). It is used to embed binary data — like images or keys — in text-only formats such as JSON, email or data URLs.
- No. Base64 is encoding, not encryption — it provides no security. Anyone can decode it instantly. Never use it to protect secrets.
- Yes. Text is encoded as UTF-8 before Base64, so accented characters, emoji and other non-ASCII text round-trip correctly.
- No. Encoding and decoding happen entirely in your browser with the built-in btoa/atob functions. Nothing is uploaded.