← Profiterole

Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 back to text — instantly, client-side, no server.

Input text (plain text to encode)
Base64 output

What is Base64?

Base64 encodes binary data as ASCII text using 64 printable characters. 3 input bytes become 4 output characters, inflating size by ~33%.

Common uses

Embedding images in CSS/HTML (data:image/png;base64,...), encoding binary in JSON, HTTP Basic Auth headers, JWT tokens.

URL-safe variant

Standard Base64 uses + and / which break URLs. URL-safe Base64 replaces them with - and _. Used in JWTs.

No padding

The trailing = padding aligns output to 4-byte blocks. It's optional for decoding and omitted in many APIs (e.g. JWT).

Buy me a coffee