URL Encode Decode
Encode text for use in URL query strings or paths (percent-encoding), or decode an already encoded string. Uses encodeURIComponent and decodeURIComponent. All processing is local.
Encode or decode
Enter text and click Process.
How it works
Encode: we use encodeURIComponent so spaces become %20 and special characters are percent-encoded. Decode: we use decodeURIComponent; invalid sequences may throw and we show an error.
When to use it
Use when building query strings or when you receive an encoded URL and need to read the raw value.
Frequently asked questions
- Encode full URL? Only encode the part that goes in a query or path. Encoding the whole URL can break the scheme and host.