Base64 Encoder / Decoder

Encode or decode Base64 instantly in your browser — supports UTF-8, URL-safe variant, and standard padding. Nothing is uploaded.

Output


Encode and decode Base64 online

Paste any text and it is Base64-encoded the moment you type — no button to press, no upload. Everything runs locally in your browser, so even sensitive values never leave your machine. Switch to Decode to convert a Base64 string back to plain text, or enable URL-safe mode to get the RFC 4648 variant that replaces + with - and / with _ and strips padding.

The encoder handles full UTF-8, so accented characters, emoji, and CJK text all round-trip correctly. If decoding fails because the input is not valid Base64, you get a clear error message rather than silent garbage output.

FAQ

Is my data sent anywhere? No. All encoding and decoding happens entirely client-side in your browser.

What is URL-safe Base64? Standard Base64 uses + and / which must be percent-encoded in URLs. The URL-safe variant uses - and _ instead, and omits = padding — safe to use directly in query strings and JWT tokens.

Related tools

Popular tools