What Does the Base64 Encoder / Decoder Do?
This tool converts text to Base64 and decodes Base64 strings back to readable text, entirely in your browser. It is fully UTF-8 aware โ emoji, accents and any world script encode and decode correctly โ and it supports the URL-safe Base64 variant (using - and _ instead of + and /) used in JWTs and web tokens.
Base64 is not encryption: it is an encoding that represents binary data using 64 printable characters, so any data can travel safely through channels designed for plain text โ JSON fields, XML documents, URLs, email bodies and HTTP headers.
How to Use the Tool
- Choose Encode or Decode with the tabs.
- Type or paste into the left box โ the result appears live on the right.
- Tick URL-safe variant when working with JWTs or URL parameters.
- Copy the output with one click. Invalid Base64 input produces a clear error instead of garbage.
Where You Meet Base64 Every Day
- Data URIs โ images embedded directly in HTML/CSS are Base64 strings (
data:image/png;base64,โฆ). - JSON Web Tokens โ each of a JWT's three dot-separated sections is URL-safe Base64; decode them here to inspect the payload.
- HTTP Basic Auth โ the
Authorizationheader carriesuser:passwordBase64-encoded. - Email attachments โ MIME encodes binary attachments as Base64 text.
- API payloads โ binary blobs (images, PDFs, certificates) shipped inside JSON fields.