URL Encoder and Decoder

Percent-encode text for links and query strings, or decode an encoded URL back to readable text.

Raw or Encoded Text

Result

Understanding Percent-Encoding

URL encoding, formally known as Percent-Encoding, is a mechanism used to translate characters that are not allowed directly in URLs into a globally safe format that can be transmitted over the internet via HTTP. This is vital for constructing valid URLs, especially when dealing with query strings and API parameters.

Our tool utilizes the built-in encodeURIComponent() and decodeURIComponent() JavaScript functions to handle this translation natively and instantly. It ensures that characters like spaces, quotation marks, and non-ASCII symbols are correctly represented by a percent sign followed by two hexadecimal digits (e.g., a space becomes %20).

What is Strict Encoding (RFC 3986)?

By default, standard JavaScript URL encoding ignores a few specific characters: ! ' ( ) *. However, modern strict URI specifications (RFC 3986) often require these characters to be encoded, especially when generating signatures for OAuth authentications or strict backend routers. Toggling the "Strict Encoding" checkbox on our tool ensures these final stragglers are properly converted.

Common Use Cases

Action completed!