Base64 Encode / Decode
Encode text to Base64 or decode Base64 to text with full UTF-8 and URL-safe support.
About the Base64 Encode / Decode
Base64 represents binary data with 64 printable characters so it can travel through text-only channels such as JSON, URLs and email. This tool encodes and decodes it with full UTF-8 support.
Everything runs in your browser, so your input is never uploaded to a server.
How to use the Base64 Encode / Decode
- Choose Encode or Decode.
- Paste your text or Base64 string.
- Turn on URL-safe (Base64URL) for tokens and URLs, then copy the result.
Frequently asked questions
What is Base64URL?
A variant that uses - and _ instead of + and / and usually drops = padding, so the value is safe in URLs and file names. JWTs use it.
Is Base64 encryption?
No. Anyone can decode Base64; it is an encoding, not a way to protect data.
Related tools
URL Encode / Decode
Percent-encode or decode URLs and query string components.
HTML Entity Encode / Decode
Escape special characters as HTML entities or decode entities back to text.
JWT Decoder & Verifier
Decode JSON Web Tokens, inspect header and claims, check expiry and verify HMAC signatures locally.
JWT Generator
Create signed JSON Web Tokens with HS256, HS384 or HS512 from a custom header and payload.
Unicode Escape / Unescape
Convert text to \uXXXX escape sequences and back, including emoji and astral characters.
JSON Formatter
Format and beautify JSON with configurable indentation and optional key sorting. Errors are reported with exact line and column.