Base64 Encode & Decode
Convert text to and from Base64 (UTF-8 & URL-safe), and turn any file into a Base64 data URL.
Plain text
Base64
File to Base64
Frequently asked questions
How do I encode or decode Base64?+
Choose Encode or Decode, then type or paste your text — the result updates instantly. Use the swap button to flip the input and output.
Does it handle emojis and accented characters?+
Yes. Encoding and decoding are fully UTF-8 safe, so emojis, accents, and non-Latin scripts convert correctly (unlike the browser's raw btoa/atob).
What is URL-safe Base64?+
URL-safe Base64 replaces + and / with - and _ and drops padding, so the result can be used safely in URLs and filenames. Toggle it on for both encoding and decoding.
Can I convert a file to Base64?+
Yes. Upload any file and get its Base64 string and full data URL — handy for embedding images or assets inline.
Is my data uploaded?+
No. Everything runs in your browser — your text and files never leave your device, and the tool works offline.