Encode
URL Encoder / Decoder
Percent-encode a string for safe use in a URL, or decode an already-encoded one back to plain text.
Encode
Percent-encode a string for safe use in a URL, or decode an already-encoded one back to plain text.
Walkthrough
Use cases
Building a query string by hand. Encode a value containing spaces, ampersands, or special characters before appending it to a URL so it doesn't break the parsing.
Debugging a broken link. Decode a URL full of %20 and %3D sequences to read what it actually says.
Passing a redirect URL as a parameter. Encode a full URL so it can safely travel inside another URL's query string.
FAQ
This tool uses encodeURIComponent, which escapes more characters (including & and =) — the right choice for encoding a single query parameter value rather than a whole URL.
Unreserved characters (letters, digits, - _ . ~) are left as-is per the URL spec since they're already safe.
No, encoding and decoding run locally using built-in browser functions.
Related