URL Encoder / Decoder
Percent-encode special characters for safe use in URLs, or decode an encoded string back to plain text. Instant results, no data sent to any server.
How to use
Encode: Paste any text — a URL, a query parameter value, a path segment — and click Encode. Special characters like spaces, &, =, #, and non-ASCII characters are converted to percent-encoded form.
Decode: Switch to Decode mode, paste a percent-encoded string, and get the original text back. Useful for reading encoded URLs from logs or API responses.
Swap: Moves the output back to the input so you can encode/decode again without copying manually.
Use cases
- Encoding query parameter values before appending them to a URL
- Decoding URLs from server logs or error messages to make them readable
- Building redirect rules or rewrite configs with encoded paths
- Encoding file names with spaces or special characters for use in REST API paths
- Debugging double-encoded URLs from third-party integrations
Limitations
This tool encodes using the encodeURIComponent standard (RFC 3986), which is correct for encoding individual query parameter values. If you need to encode a full URL while preserving slashes and colons, use encodeURI semantics instead.
The tool does not validate whether the input is a well-formed URL — it encodes whatever text you provide.