Code · Made a little simpler

Base64 encoder & decoder

Encode Unicode text as Base64 or decode Base64 into UTF-8 text. Choose the standard or URL-safe alphabet and copy or download the result locally.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Undo: Ctrl/Cmd+Z · Redo: Ctrl/Cmd+Shift+Z or Ctrl+Y. Up to 20 steps and 4 million retained characters in this tab. Clear discards history.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Base64 encoder & decoder: how to use it

  1. Paste text or a Base64 string, or open a local text file.
  2. Choose standard or URL-safe Base64, then Encode or Decode.
  3. Review the result, copy it, or use it as input to reverse the conversion.

Limits and notes

Text input only, up to 1 million characters. Decoding accepts optional padding and ASCII whitespace, rejects invalid padding bits, and requires valid UTF-8. URL-safe encoding omits padding. Base64 is an encoding, not encryption.

How your privacy works →

Base64 encoder & decoder: common questions

Does this support emoji and non-English text?

Yes. Encoding first converts your text to UTF-8 bytes, so supported Unicode text round-trips, including emoji and combining characters.

Can I decode a binary file?

This tool decodes UTF-8 text. Arbitrary binary bytes return a clear error instead of a damaged text result.

Is Base64 private?

The conversion runs on your device, but Base64 itself does not protect secrets. Anyone with the encoded string can decode it.

What is the difference between Base64 and Base64url?

The last two alphabet symbols differ: standard uses + and /; URL-safe uses - and _. ToolMellow emits standard padding where needed and omits URL-safe padding. Both selected modes accept correctly padded or unpadded decoding input.

Why does Base64 end with equals signs?

One or two trailing equals signs fill the last four-character group when the byte count is not divisible by three. Padding is format-specific; this decoder permits a valid unpadded form too.

Tool guides