URL Encoder & Decoder

Encode query parameters and strings to percent-encoded URI notation, or decode escaped URLs. Fast, secure and browser-based.

⚠️
URL Decoding Error The input contains malformed percent-encoding sequences that could not be parsed.
Source URL / Parameter
Result Output

What is URL Encoding (Percent Encoding)?

URL encoding (officially called percent-encoding) is a method to encode data within a Uniform Resource Identifier (URI) so that web servers and browsers can parse parameter strings correctly. URIs can only contain a limited set of ASCII characters. If you need to include spaces, emojis, query dividers, or letters from non-Latin scripts, they must be converted.

The conversion maps non-conforming characters to their hexadecimal value preceded by a `%` character. For example, a blank space becomes `%20`, a question mark becomes `%3F`, and an ampersand becomes `%26`.

Encode URI vs. Encode URI Component

JavaScript provides two primary APIs to encode URLs:

Frequently Asked Questions

URL encoding is a mechanism for encoding information in a Uniform Resource Identifier (URI) under certain circumstances. It replaces unsafe ASCII characters with a '%' followed by two hexadecimal digits representing the character code. It is used to ensure URL parameters are parsed correctly by web servers.

Encoding a component (encodeURIComponent) encodes all special characters, including protocol delimiters like '://', '/' and '?'. This is used when passing a complete URL as a parameter inside another URL. Encoding a full URL (encodeURI) leaves delimiters like 'http://', '/' and '?' intact, formatting only spaces and other invalid characters to keep the URL address functional.

No. Like all tools on our site, the URL encoding and decoding operations happen inside your browser using standard JavaScript APIs. No database logs are created.