🔁 Base64 Encoder & Decoder
Convert text and files to and from Base64, with proper Unicode handling and a URL-safe option.
How to use the Base64 Encoder & Decoder
- Paste text and click Encode, or paste Base64 and click Decode.
- Enable URL-safe mode for tokens, JWT parts and query strings.
- Choose a file to turn it into a data URI you can embed in HTML or CSS.
Frequently asked questions
What is Base64?
Base64 represents binary data using 64 printable characters (A–Z, a–z, 0–9, + and /). It is used to embed images in HTML/CSS, send attachments in email, and pass data in URLs and JSON.
Is Base64 encryption?
No. Base64 is an encoding, not encryption. Anyone can decode it, so never use it to protect secrets.
Does it support emoji and non-English text?
Yes. Text is converted to UTF-8 bytes before encoding, so emoji, accents and any script decode back exactly.
What is URL-safe Base64?
A variant that replaces + with − and / with _ and drops = padding so the output can be used safely in URLs and file names. JWTs use this format.
More free tools
CSV ↔ JSON Converter
Turn spreadsheets into JSON for your code, or JSON arrays back into CSV for Excel and Google Sheets.
UUID Generator
Create universally unique identifiers for databases, APIs and tests, with crypto-secure randomness.
Regex Tester
Write a pattern, paste some text and see every match, capture group and replacement as you type.
JSON Formatter & Validator
Paste JSON to pretty-print it, minify it, or pinpoint the exact line and column of a syntax error.