Base64 Encode & Decode
Convert text or files to Base64 and back – UTF-8 safe, nothing uploaded.
Your data is processed in your browser and never sent anywhere.
Encode or decode Base64 in one click: handle Unicode text correctly, switch to URL-safe Base64 for tokens and links, turn an image or any file into a Base64 string or data URI, or paste Base64 and download the file it contains.
What is Base64?
Base64 represents binary data using 64 printable characters (A–Z, a–z, 0–9, + and /), so it can travel through systems built for text such as JSON, e-mail, HTML and URLs. It makes data about a third larger and is an encoding, not encryption – anyone can decode it.
This tool encodes text as UTF-8 first, so accented letters, CJK characters and emoji round-trip correctly. URL-safe mode swaps + and / for - and _ and can drop the = padding, as used in JWTs. In file mode an image can be copied as a ready-to-paste data URI, and Base64 or data URIs can be turned back into a downloadable file.
How to use it
- Choose Encode or Decode and type or paste your text. The result appears instantly.
- For files, open the File tab, drop a file to get its Base64 string, or paste Base64 on the right to preview and download it.
- Copy the result, or swap it back into the input to reverse the operation.
Frequently asked questions
- How do I decode Base64 to text?
- Choose Decode, paste the Base64 string and read the text on the right. Both standard and URL-safe Base64 are accepted, with or without padding.
- Is Base64 secure?
- No. Base64 is only an encoding and can be reversed by anyone. Do not use it to protect secrets.
- Are my files uploaded?
- No. Everything is done in your browser, so files and text never leave your device.