Base64 Encode & Decode
Encode text to Base64 or decode Base64 back to text, with UTF-8 support. Free, private and instant.
How to use the Base64 Encode & Decode
- Type or paste text into the box and choose Encode or Decode.
- Tick URL-safe Base64 if the result will go in a URL or filename; it swaps + and / for - and _ and drops the = padding.
- The result appears as you type, with Copy and Download .txt buttons.
Example
Worked example (fictional text, run through this tool)
- Encode: Café ☕ becomes Q2Fmw6kg4piV
- Decode: Q2Fmw6kg4piV becomes Café ☕
- Invalid input: Q2Fmw6kg4piV!! gives: That is not valid Base64.
Limitations
- Base64 is an encoding, not encryption. Anyone can decode it, so never use it to hide passwords or secrets.
- Text is converted as UTF-8. Decoding Base64 that holds a binary file (an image or PDF) will show garbled characters; use the Image to Base64 tool for images.
- Encoding makes data about one third larger.
About this tool
Encode strings to Base64 or decode Base64 strings instantly. Unicode and emoji are handled correctly, and a URL-safe variant is available.
Base64 Encode & Decode is part of ToolStack Hub's Developer Tools. It runs entirely in your browser, which keeps your data private and makes results instant. There is nothing to install and no account to create. There is no usage limit.
Guides about this tool
Frequently asked questions
Is the Base64 Encode & Decode free?
Yes. Base64 Encode & Decode is completely free with no sign-up, limits or watermarks.
Is my data private when I use the Base64 Encode & Decode?
Yes. It runs in your browser, so your input is not uploaded to our servers.
Does it work on mobile?
Yes. ToolStack Hub tools work on phones, tablets and desktop browsers.
Keep going
Need this automated for your business?
Vantalume builds custom AI and web automation workflows so your team can stop doing repetitive work.