Convert · How to use · FAQ · Related tools

Convert text ⇄ Base64

Ad

How to use

  1. Paste text to encode or a Base64 string to decode into the top box.
  2. Click Encode to get Base64, or Decode to get text.
    Shortcut: press Enter to Encode, Shift+Enter to Decode.
  3. Use Copy output to copy the result.

Tips

FAQ

Is this Unicode-safe?

Yes. We encode bytes via TextEncoder and decode via TextDecoder, so emoji and non-ASCII scripts round-trip correctly.

How do I make URL-safe Base64?

Replace + with - and / with _. You may remove trailing =. This tool’s decoder accepts URL-safe input automatically.

Why do I get “InvalidCharacterError” when decoding?

Usually due to stray characters or bad padding. Remove whitespace and ensure the length is a multiple of 4 (add = as needed). This tool normalizes most of that for you.

Can I decode Data URLs?

Yes—remove the data:*;base64, prefix first, then paste only the Base64 part.

Does any of my data leave my browser?

No. All encoding/decoding happens locally.

Does it work offline?

Yes. After the first load, the page works without internet.