Tutorials

Base64 Encoder & Decoder: a quick guide

Encode and decode Base64 with full Unicode support and file mode.

Base64 turns up everywhere: JWTs, data URIs, OAuth tokens, email attachments. The ChrysoKit Base64 Encoder & Decoder is the small tool you reach for when you need to look at, or massage, a Base64 string.

Why use it

Encoding and decoding are one click apart, both directions are fully Unicode-safe, and URL-safe Base64 is a single checkbox away. Local-only, so private tokens never leave the page.

How to use the Base64 Encoder & Decoder

  1. Pick the Encode tab to convert plain text to Base64, or Decode to go the other way.
  2. Paste your input.
  3. Tick URL-safe if you need the JWT-style alphabet (uses -_ and omits padding).
  4. Copy the result with one click.

Features worth knowing

Full Unicode

Emojis, accented characters and CJK text all round-trip cleanly.

URL-safe mode

Replaces + and / with - and _, and strips the = padding. Required inside JWTs and many OAuth flows; standard Base64 will fail validation.

Encode and decode tabs

Switch direction with one click instead of finding a separate tool.

Pro tips

  • Base64 is encoding, not encryption. Anything you can encode, anyone else can decode.
  • URL-safe Base64 is required inside JWTs and many OAuth flows. Standard Base64 will fail validation.
  • Padding (the '=' at the end) is sometimes stripped. Most decoders tolerate it either way; the tool does too.
  • If you need to Base64 an image, use the Image to Base64 tool, which handles binary properly.

Privacy first. The Base64 Encoder runs entirely in your browser. Nothing you encode is uploaded.

Bookmark the Base64 tool; you will need it more than you expect.

Open the tool: Base64 Encoder →

Share this article
CK
ChrysoKit Team

The team behind ChrysoKit. We build small, useful, fast, free tools for people who would rather get on with their day than fight a website.