Base64 Encode / Decode
Encode and decode Base64, UTF-8 safe.
How to use
- 1 Paste text to encode, or a Base64 string to decode.
- 2 Choose Encode or Decode, and toggle URL-safe if needed.
- 3 Read the result.
- 4 Copy or download the output.
About Base64 Encode / Decode
Base64 encodes arbitrary text or binary data into a safe ASCII alphabet so it can travel through systems that only handle text — data URIs, JSON payloads, email attachments, HTTP headers and JWT segments.
This tool encodes and decodes in both directions with correct UTF-8 handling, so accented characters and emoji survive the round trip intact.
It also supports the URL-safe alphabet (which swaps "+/" for "-_" and drops padding) used in tokens and query strings.
Decoding validates the input and tells you plainly when a string is not valid Base64, rather than returning garbage.
Everything happens locally in your browser, so you can safely decode tokens and payloads that contain sensitive data without sending them anywhere.
FAQ
Does it handle emoji and accents?
Yes — encoding and decoding go through UTF-8, so multi-byte characters round-trip correctly.
What is URL-safe Base64?
A variant that replaces "+" and "/" with "-" and "_" and omits "=" padding, so the result is safe in URLs and tokens.