ToolKit

03 / DEVELOPER

Base64 Encoder

Convert UTF-8 text to and from Base64 in your browser. Supports the standard alphabet and the URL-safe variant from RFC 4648.

Input
Output

How to use

  1. 1Pick a mode: Encode (text → Base64) or Decode (Base64 → text).
  2. 2Paste your input into the left panel. The right panel updates instantly.
  3. 3Toggle URL-safe to swap +/ for -_ and strip = padding (RFC 4648 §5).
  4. 4Use Copy to grab the result. Nothing leaves your browser.

Frequently asked questions

What character set is the input?

Encoding always treats text as UTF-8 — emoji and non-Latin scripts round-trip cleanly. Decoding produces UTF-8 text; if your data was binary, decode externally.

What does URL-safe do?

It replaces + with -, / with _, and strips = padding. The result is safe to drop into URLs and JWTs without further escaping.

Why does decoding fail on my string?

Standard Base64 length must be a multiple of 4, and the alphabet only allows A-Z a-z 0-9 + / =. Trim stray whitespace, or paste a URL-safe value and toggle URL-safe on.

Is binary data supported?

This tool is text-first. To Base64-encode arbitrary binary (an image, a binary key), use the Hash Generator's File mode plus a separate binary encoder, or wait for our upcoming binary-to-base64 helper.

Are there length limits?

Practically no — the encoder runs in your browser. Multi-megabyte payloads work but may take a moment, and the textarea may slow down before the underlying encoder does.

Related tools