Base64 Encoder / Decoder
Encode text to Base64 and decode Base64 back to text.
The converted value will appear here.
Encoding happens in this tab. Base64 is an encoding, not encryption, so never treat it as a way to protect secrets.
About the Base64 Encoder / Decoder
Base64 turns arbitrary bytes into safe ASCII characters, which is why it appears in data URLs, basic authentication headers, email attachments and JSON web token payloads. This tool converts in both directions and handles full Unicode correctly.
Remember that Base64 is an encoding, not encryption. Anyone can decode it instantly, so never treat it as a way to hide sensitive values.
How to use the Base64 Encoder / Decoder
- 1Choose Encode or Decode.
- 2Paste your text or Base64 string.
- 3Optionally switch on URL-safe output when the value will appear in a link.
- 4Copy the result, or swap direction to check the round trip.
Features
- Full Unicode support, including emoji and non-Latin scripts
- URL-safe variant with hyphen and underscore characters
- Clear errors for malformed Base64 input
- Byte and character counts for both sides
- Instant swap between input and output
Why people use it
- Read a token payload or encoded configuration value quickly.
- Build a small data URL without a build tool.
- Debug an authorisation header by decoding it.
Common use cases
- Decoding the middle segment of a JSON web token to inspect its claims.
- Encoding a short SVG for inline embedding.
- Checking a Base64 value passed between two services.
Privacy and your data
Conversion is performed locally, so tokens you decode never leave your browser.
Frequently asked questions
Related tools
JSON Formatter
Beautify, minify and inspect JSON with clear error reporting.
JSON Validator
Check whether JSON is valid and locate the exact syntax error.
URL Encoder / Decoder
Percent-encode and decode URLs, paths and query values.
HTML Entity Encoder / Decoder
Escape HTML special characters and convert entities back to text.
UUID Generator
Generate random version 4 UUIDs in bulk.
Timestamp Converter
Convert Unix timestamps to readable dates and back again.