Tools / Base64 & URL
Base64 & URL
Encode or decode Base64 and URL (percent-encoding) — Unicode-safe, fully local.
How to encode and decode
- Pick Base64 or URL mode and a direction (encode or decode).
- Type or paste — output updates live; use Swap to reverse direction.
- Copy the result with one click.
Frequently asked questions
Why does Chinese break other Base64 tools?
Base64 operates on bytes, but JS strings are Unicode — many tools call btoa() directly, which fails on non-Latin1 text. We convert through UTF-8 first, so Chinese, emoji and accents encode correctly.
Base64 or URL encoding — which one?
URL (percent) encoding makes text safe inside URLs, e.g. in query strings. Base64 represents binary data as text — for data URIs, JWTs and email attachments.
Is Base64 encryption?
No — it is an encoding, trivially reversible and not a security measure. For secrets use real encryption.