IT · Security · Tech Commentary
Base64
← Tools
Encode text to Base64 or decode Base64 back to text. Live conversion, URL-safe mode, full Unicode support. Nothing leaves your browser.
Input — Plain Text 0 chars
Output — Base64 0 chars
What is Base64?

Base64 encodes binary data using 64 printable ASCII characters (A–Z, a–z, 0–9, +, /). Every 3 bytes of input become 4 Base64 characters. Used wherever binary data needs to travel through text-only channels — email attachments, JWTs, data URIs, HTTP Basic auth headers.

URL-Safe Mode

Standard Base64 uses + and /, which have special meaning in URLs and must be percent-encoded. URL-safe Base64 replaces them with - and _, and omits the = padding. Used in JWTs, OAuth tokens, and any Base64 embedded in a URL.

Common Uses

Decoding a JWT payload — the middle section (between the dots) is Base64url-encoded JSON. Encoding images as data: URIs. Passing binary config in environment variables. HTTP Basic auth is Base64(username:password) — never send this over plain HTTP.