Percent-encode or decode URLs and query string parameters.
Frequently Asked Questions
URL encoding (percent-encoding) replaces unsafe ASCII characters with a '%' followed by two hexadecimal digits. For example, a space becomes %20 and '&' becomes %26. This ensures special characters are safely transmitted in URLs.
URL encode when building query strings, passing special characters in URLs, or working with API parameters. Characters like &, =, ?, #, and spaces must be encoded when used as data in URLs.
encodeURI encodes a full URI but preserves characters like :, /, ?, #, and &. encodeURIComponent encodes everything except letters, digits, and - _ . ~ making it suitable for encoding individual URL parameters. This tool uses encodeURIComponent.
Yes. All encoding and decoding happens in your browser. No data is transmitted to any server.