Base64 Encoder & Decoder
Encode text to Base64 or decode Base64 back to text — plus convert any file to Base64. Unicode-safe, in your browser.
0 characters in
0 characters out
Convert a file to Base64
Any file type — the output is a full data URL you can paste into HTML or CSS.
No file chosen.
Paste text above to convert it — nothing is uploaded anywhere.
Conversion successful. Base64 is an encoding, not encryption — anyone can decode it.
Working…
Something went wrong
Your results will appear here.
Fill in the input above and run the tool to get started.
Honest limits
Base64 is an encoding, not encryption — anyone can decode it. Never use it to "protect" secrets or passwords.
How to use the Base64 Encoder & Decoder
- Choose Encode (text → Base64) or Decode (Base64 → text) at the top.
- Paste your text — the result converts live as you type, or press Convert for an explicit conversion.
- Use Copy result to copy, Download result to save it as a file, and Clear to reset. For files, use Choose a file to get a ready-to-paste data URL.
Examples
Example
Encode Hello → SGVsbG8=. Decoding SGVsbG8= returns Hello exactly — including emoji and non-Latin text, which this tool handles safely.
What this tool doesn't do
- Base64 is an encoding, not encryption. Anyone can decode it instantly — never use it to "protect" secrets, passwords, or tokens.
- Base64 output is always ~33% larger than the input — it is not compression.
- The decoder expects standard Base64 (A–Z, a–z, 0–9, +, /, =). URL-safe variants (using
-and_) or strings with whitespace need cleaning first.
Frequently asked questions
Related tools
JSON Formatter & Validator
Validate, format and minify JSON instantly.
Use toolMD5 Hash Generator
Generate MD5, SHA-1 and SHA-256 hashes from text or files — instantly, in your browser.
Use toolPassword Generator
Generate strong, random passwords and passphrases.
Use toolWord Counter
Count words, characters, sentences and paragraphs as you type.
Use toolCase Converter
Convert text between UPPERCASE, lowercase, Title Case, Sentence case and more — instantly.
Use toolAge Calculator
Enter your birth date — get your exact age in years, months and days, plus a countdown to your next birthday.
Use tool