URL Encoder / Decoder
Encode or decode URLs and URL components.
About the URL Encoder / Decoder
The URL Encoder/Decoder encodes special characters in URLs using percent-encoding (e.g., space becomes %20) and decodes percent-encoded strings back to plain text. Supports both full URL encoding and component-level encoding for query parameters.
URL encoding (also called percent-encoding) is required by the HTTP specification: URLs may only contain a restricted set of ASCII characters. Any character outside that set — spaces, ampersands, equal signs, Unicode characters — must be encoded as a percent sign followed by two hexadecimal digits. This is essential when constructing query strings, embedding URLs in other URLs, or generating API request parameters programmatically.
encodeURIComponent() encodes everything except letters, digits, and -_.!~*'(), making it ideal for encoding individual query parameter values. encodeURI() preserves structural characters like /, ?, and &. All encoding and decoding runs locally in your browser.