WHAT IT DOES
Percent-encoding that matches what your code will do.
Encode a value for safe use inside a query string or path segment, or decode a percent-encoded string back to readable text. The tool uses the browser's own encodeURIComponent and decodeURIComponent, so the output matches what JavaScript, and by extension most HTTP clients, will produce.
Why use it?
Use component encoding when a value contains characters that would otherwise become URL separators—for example, an ampersand inside a search term.
How to use this tool
- Paste a single query value or path component and encode or decode it.
- For example, red & blue encodes to red%20%26%20blue. Do not encode a whole URL as one component unless you intend to embed that URL inside another value.
- Check for double encoding: %20 encoded again becomes %2520. Decode leaves a literal + unchanged; form-style query inspection belongs in URL Inspector.
Details and limitations
- Component encoding escapes the reserved characters &, =, ?, #, /, and space, which is what query parameter values need.
- Decoding reports malformed percent sequences instead of throwing away the input.
- Plus signs are treated as literal characters, not as spaces; form encoding is a different scheme.
- Non-ASCII text is encoded as UTF-8 percent sequences.