Base64 Encode & Decode
Encode any UTF-8 text to Base64 or decode a Base64 string back to text. Toggle the URL-safe variant for embedding in URLs and JWTs.
Full UTF-8 support — emoji, accents, anything. Decoding pads automatically.
About Base64
Base64 represents binary data using 64 printable characters
(A–Z, a–z, 0–9, plus + and /, with
= padding). It's widely used for embedding small
images in HTML/CSS, transmitting binary in JSON, and encoding
credentials in HTTP headers.
URL-safe Base64
When Base64 needs to live in a URL or filename, the standard
characters + and / are replaced with
- and _, and padding is dropped. JWTs
use this variant. Toggle the option above to use it.
Privacy
Encoding and decoding happen entirely in your browser using
JavaScript's built-in btoa / atob
combined with TextEncoder for proper UTF-8 handling.
Nothing is uploaded.