URL Encoder & Decoder
Percent-encode URLs and decode them back. Runs locally — nothing is uploaded.
How it works
Percent-encoding replaces unsafe characters with % followed by two hex digits of the UTF-8 bytes — e.g. a space becomes %20 and 中 becomes %E4%B8%AD. This tool uses encodeURIComponent, which encodes everything except A–Z a–z 0–9 - _ . ! ~ * ' ( ).
Use it when pasting non-ASCII text into query strings, building redirect URLs, or debugging double-encoded parameters (a %25 in the output means the input was already encoded once).
Frequently asked questions
encodeURI vs encodeURIComponent?
encodeURI leaves URL structure characters (: / ? & =) alone — good for whole URLs. encodeURIComponent encodes those too — correct for a single query-string value. This tool uses the component variant, which is what you want 90% of the time.
Why do I see %25 in my output?
%25 is the encoding of the % sign itself — your input was already percent-encoded, so it got encoded a second time. Decode once first.
Is my URL sent anywhere?
No — everything happens in JavaScript on your device.