🔡

Base64 Encoder

Encode & decode Base64 strings

Input
Output

About Base64 Encoder

Base64 converts binary data or text into a string of printable ASCII characters. You run into it constantly: HTTP Basic Auth headers, data URIs for embedded images, JWT payload encoding, binary data in JSON, email attachments. Encode any text to Base64 or decode Base64 back to readable text. Full UTF-8 support handles accented characters, emoji, and non-Latin scripts correctly — not just ASCII. Runs in the browser. No data leaves the page.

Common Use Cases

  • Encoding credentials for HTTP Basic Authentication headers
  • Decoding Base64 values found in JWT payloads or API responses
  • Embedding small images as Base64 data URIs in CSS
  • Passing binary data through text-only channels

Frequently Asked Questions

Is Base64 the same as encryption?+
No. Base64 is encoding, not encryption. Anyone can decode it — it is just a way to represent binary data as text. Never use it to protect sensitive data.
Why does my Base64 end with == ?+
Base64 works in 3-byte groups, encoding them into 4 characters. If the input length is not a multiple of 3, padding (=) is added to fill out the last group. One = means one padding byte, == means two.
Standard vs URL-safe Base64 — what is different?+
Standard Base64 uses + and / which have special meaning in URLs. URL-safe Base64 replaces them with - and _ so the output is safe in URLs and filenames without percent-encoding.