Convert · How to use · FAQ · Related tools
How to use
- Paste text to encode or a Base64 string to decode into the top box.
-
Click Encode to get Base64, or
Decode to get text.
Shortcut: press Enter to Encode, Shift+Enter to Decode. - Use Copy output to copy the result.
Tips
-
Unicode/emoji-safe: uses
TextEncoder
/TextDecoder
, so non-ASCII works correctly. -
URL-safe variant: replace
+
→-
and/
→_
; padding=
may be trimmed. - Decoder accepts whitespace, URL-safe characters, and auto-adds missing padding.
-
For Data URLs, strip the prefix like
data:...;base64,
before decoding. - Works offline once loaded; no data leaves your browser.
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.
Related tools
More text & encoding utilities:
Text → PDF JSON Formatter URL Tools
Prefer বাংলা? Try the বাংলা সংস্করণ.