Base64 Encoder & Decoder — Convert Text To and From Base64
Base64 is an encoding scheme that represents binary or text data using a set of 64 printable ASCII characters (A–Z, a–z, 0–9, plus + and /). It was designed so that arbitrary data can travel safely through systems that only reliably handle plain text — email bodies, URLs, JSON payloads, HTML data URIs, and HTTP headers. Encoding does not encrypt or compress the data; it simply repackages it into a text-safe form, and anyone can decode it back to the original.
This tool converts in both directions. In encode mode, it takes your plain text and produces the Base64 representation. In decode mode, it takes a Base64 string and reconstructs the original text. Crucially, it handles the full range of Unicode correctly — accented letters, non-Latin scripts, and emoji all round-trip cleanly. Many naive Base64 tools break on anything outside basic ASCII because the underlying browser functions expect single-byte characters; this tool encodes text as UTF-8 first, so "héllo 🌍" survives a full encode-then-decode cycle unchanged.
Everything happens locally in your browser. Your input is never uploaded, logged, or stored, so it is safe to paste tokens, configuration snippets, or private text. If you paste something that is not valid Base64 into the decoder, the tool tells you rather than producing garbage.
Common uses include: inspecting the payload of a JSON Web Token (JWT), embedding a small image or font directly in CSS or HTML as a data URI, decoding a Base64 blob returned by an API, encoding credentials for a Basic Authentication header, storing binary-ish data inside a text-only configuration file, and learning how Base64 padding and character mapping work. Remember that Base64 offers no security whatsoever — it is trivially reversible — so never use it to hide secrets; use it only to make data safe to transport as text.
How to use the Base64 Encode / Decode
- Choose Encode to turn plain text into Base64, or Decode to turn Base64 back into text.
- Type or paste your input into the box.
- The converted result appears instantly below.
- If decoding fails, you will see an "invalid Base64" message so you can check the input.
- Click Copy to grab the result.