How to encode or decode Base64
- Choose Encode or Decode at the top of the tool.
- Paste your text into the left box, or press Try an example. When encoding, switch on URL-safe if the result will go into a link, a file name or a token.
- Read the result in the right-hand box. It updates as you type. If a Base64 string decodes to a file rather than text, press Download file to save it.
- Copy or download the output as a .txt file. Press Use result as input to move the output back to the input box and reverse the direction, which is a quick way to check a round trip.
Features
- Full Unicode support: text is converted to UTF-8 bytes first, so Urdu, Arabic, Hindi, Chinese and emoji survive the round trip.
- URL-safe option that swaps + and / for - and _ and removes the = padding.
- Forgiving decoder that accepts missing padding, line breaks, spaces, the URL-safe alphabet and a data: URI prefix.
- Binary detection: when decoded data isn't text, you can download it as a file, with PNG, JPG, GIF, WebP, PDF and ZIP recognised automatically.
- Clear error message when the input isn't valid Base64.
- Live character and line counts for both boxes.
- Copy, download and swap buttons.
Why use Fileora's Base64 tool
Base64 strings often hold things you shouldn't hand to a stranger: API credentials in a Basic authentication header, the payload of a session token, a configuration secret, or a scanned document embedded in an email. Many online decoders send whatever you paste to their server. Fileora decodes and encodes with your browser's own functions, so the data stays on your device and nothing is logged.
The tool is free, needs no account and has no usage limit. The layout places the two boxes side by side on a laptop and stacks them on a phone, so you can decode a string from a message without opening a computer.
Working with images? The image to Base64 converter produces ready-made data URIs for HTML and CSS. To inspect a login token, the JWT decoder splits it into header and payload for you, and the JSON formatter tidies any JSON you decode here.
How Base64 works
Computers store everything as bytes, but email, JSON, XML and URLs were designed for text. Base64 bridges the gap. It takes the input 3 bytes (24 bits) at a time, splits those bits into four groups of 6, and maps each group to one of 64 safe characters: A–Z, a–z, 0–9, + and /. If the input length isn't a multiple of 3, one or two = signs pad the last group.
That is why Base64 output is always about 33% larger than the input, and why its length is normally a multiple of 4. For example, the word "Hi" is two bytes and becomes SGk=. Because the mapping is fixed and public, Base64 hides nothing: it is a transport format, not a lock.