Base64
Encode text or files to Base64 and decode back — full Unicode support.
About Base64
The Base64 tool encodes text or files into Base64 and decodes them back. Base64 is widely used to embed images in HTML or CSS, send binary data through JSON or APIs, and read attachments inside email source.
Accented and non-Latin characters are fully supported thanks to UTF-8 encoding, along with URL-safe Base64 and data URI prefixes.
How to use
- Choose Encode or Decode.
- Type text, paste a Base64 string or pick a file to encode (up to 25MB).
- Turn on URL-safe Base64 or the data URI prefix if needed.
- Copy the result, download the decoded file, or click "Swap" to turn the result into new input.
Key features
- Detects when decoded data is an image and shows a preview.
- Decodes strings that include a data URI prefix.
- Shows input and output sizes.
- Everything runs in your browser, so it is safe for sensitive data.
Frequently asked questions
Is Base64 a form of encryption?
No. Base64 is just a way to represent data as text, and anyone can decode it. Never rely on it to protect passwords or secrets.
Why is the encoded string longer than the original?
Base64 uses 4 characters for every 3 bytes, so the result is usually about 33% larger.
What is URL-safe Base64?
It is a variant that replaces + and / with - and _ and drops trailing = signs, so the string can be used in links without further encoding.
All tools
- Email File Splitter – Split a large email list evenly into smaller files
- Email Filter by Type – Separate Gmail, Yahoo, Outlook… into their own files
- Email Extractor – Pull every email out of messy text or documents
- Email Validator – Sort emails into valid / invalid syntax
- TXT ↔ CSV – Convert between text and spreadsheet formats
- Text Tools – Remove blank lines, duplicates, sort data
- QR Code Generator – QR codes for links, text, WiFi, email…
- URL Shortener – Create short links, track clicks
- Base64 – Encode and decode Base64