Diagnostic suite · live

URL Encoder / Decoder

Percent-encode or decode URLs and query strings — component-safe or full-URI mode.

Input
0
chars
Encoded
0
chars
Decoded
0
chars
Mode
Component
Input
Paste text or a URL
Encoded
Decoded

About the URL Encoder / Decoder

The URL Encoder/Decoder converts strings to and from percent-encoded form (RFC 3986). Percent encoding is how URLs safely carry characters that would otherwise be reserved or unsafe — spaces become `%20`, ampersands in a query value become `%26`, and Unicode characters get their UTF-8 bytes encoded byte-by-byte as `%XX` pairs.

Developers hit URL encoding constantly — building query strings by hand, embedding user input in redirect URLs, passing JSON through URL parameters, and debugging why a query parameter is being misinterpreted by a downstream service. This tool exposes both the JavaScript `encodeURIComponent` (encode everything except unreserved chars) and `encodeURI` (preserve URL structure) behaviors, so you can pick the right one for your context.

Common gotchas: encoding an already-encoded value produces double-encoded garbage. Servers behind CDNs and reverse proxies may decode once at the edge and pass a partially-decoded value to the origin. Percent-encoded plus signs (`%2B`) and literal plus signs behave differently in some form-decoders — the difference between path segments and query strings matters here.

How to use this tool

  1. 1Enter the required value in the input field above (domain, IP, URL, or text depending on the tool).
  2. 2Click the action button to run the check — results are computed instantly from our edge network.
  3. 3Review the parsed output, key fields and any warnings shown in the result card.
  4. 4Copy the result, share the page URL, or jump to a related tool from the sidebar to continue debugging.

Key features

  • Both encodeURIComponent and encodeURI variants
  • One-click swap between encode and decode
  • Detects double-encoding
  • Handles Unicode correctly
Related searches: url encoder · url decoder · percent encoding · encodeuricomponent · url escape · query string encoder

Frequently asked questions

encodeURI preserves URL structure (doesn't encode `:`, `/`, `?`, `&`, `=`, `#`, `+`). Use it when encoding a whole URL. encodeURIComponent encodes everything except unreserved characters. Use it when encoding a single query parameter value.