Base64 Encoder & Decoder
AvailableEncode text to Base64 or decode it back, with standard and URL-safe alphabets and full Unicode support.
Use the tool
Everything runs in your browser. Your text is not uploaded or stored.
About this tool
Encode text as Base64 or decode Base64 back to text. It handles any language and emoji by using UTF-8, and it can use the URL-safe alphabet that is common in tokens and links.
How it works
- Text is turned into UTF-8 bytes, and the bytes are written in the 64-character Base64 alphabet.
- The URL-safe form swaps + and / for - and _ and drops the = padding.
- Decoding accepts both forms, ignores line breaks, and tells you when the data is not text.
Common questions
Is Base64 encryption?
No. Anyone can decode it. It only changes how data is written so that it survives places that expect plain text.
Why does decoding a file fail?
Files and images are binary data, not text. This tool decodes to text only, so binary data is reported as not text.
Your text is processed in your browser and is never uploaded.
Related tools
JSON Formatter & Validator
AvailableFormat, minify, sort and check JSON, with the line and column of any error.
Developer Tools
URL Encoder & Decoder
AvailablePercent-encode a value or a whole URL, or decode one, and find broken sequences.
Developer Tools
UUID Generator
AvailableGenerate random version 4 UUIDs in bulk, in lowercase, uppercase or without hyphens.
Developer Tools
Unix Timestamp Converter
AvailableTurn a Unix timestamp into a readable date, or a date into a timestamp, in seconds and milliseconds.
Developer Tools