Base64 Encoder & Decoder (UTF-8 Safe)
Encode text to Base64 or decode Base64 to text, with correct UTF-8 handling and URL-safe Base64 support. Runs entirely in your browser.
Base64 Encode / Decode tool
Runs entirely in your browser. Nothing you paste is uploaded or stored.
About this tool
Encode text to Base64 or decode Base64 back to text, with correct UTF-8 handling for accents, emoji and non-Latin scripts. Both standard Base64 and URL-safe Base64URL (used in JWTs) are supported, with or without padding.
Decoded data that isn't valid UTF-8 text is shown as a hex preview and can be downloaded as bytes, instead of being turned into garbled text.
How to use it
- Choose Encode or Decode.
- Paste the text or Base64 string; the result updates as you type.
- Copy the result or download decoded bytes.
Example
{"user":"Zoë","role":"admin ✓"}eyJ1c2VyIjoiWm_DqyIsInJvbGUiOiJhZG1pbiDinJMifQCommon use cases
Basic auth headers
Encode or decode the username:password part of an Authorization: Basic header.
Embedded payloads
Decode Base64 fields in API responses, message queues and Kubernetes secrets.
JWT segments
Decode individual Base64URL segments by hand.