API & Auth
Percent-encode and decode URLs and query parameters — with separate modes for components and full URLs.
Your text is encoded and decoded locally in your browser. It is never uploaded to our servers.
Component mode encodes everything (encodeURIComponent) — use for query parameter keys and values.
URLs may only contain a small safe set of ASCII characters. Everything else — spaces, Unicode, and reserved characters used in the wrong place — must be written as percent-encoding: a % followed by two hex digits per UTF-8 byte. A space becomes %20, and 中文 becomes %E4%B8%AD%E6%96%87.
There are two levels, and mixing them up is a classic bug: component encoding (encodeURIComponent) escapes everything and is correct for individual query values and path segments; full-URL encoding (encodeURI) preserves the structural characters of an already-formed URL. Encoding a full URL with component encoding destroys the :// and query separators.
Like Base64, percent-encoding is not encryption — it is only transport-safe representation. Decoding also surfaces what is really inside suspicious links, which is useful when reviewing redirects or tracking parameters.
A search for "coffee & tea" must become coffee%20%26%20tea in the URL. Component mode encodes the & so the server sees it as data, not a parameter separator.
Paste a long %XX-laden URL and click Decode (Full URL mode) to see the actual destination before you click it.
If a decoded URL still contains % characters, it was encoded twice. Press Decode again (or use Swap) until it reads cleanly.
File or page names with Unicode must be percent-encoded to appear in links. Component mode gives you the exact bytes the browser will request.
Encode and decode Base64 with full Unicode support. URL-safe mode included.
Encode and decode Punycode (IDN) domain names — convert Unicode domains to xn-- form and back.
Encode and decode Base32 (RFC 4648) — the encoding used by TOTP authenticator secrets.
Escape quotes, backslashes, and newlines so text can be embedded safely inside a JSON string.
Looking for something else? Browse all tools