URL Encoder & Decoder
Make text safe to put inside a web address, or turn %20-style text back into normal text. Use the swap button to change direction.
Text / JSON → URL-encoded
🔒 Everything happens inside your browser. Your data is never uploaded or stored.
What is URL encoding?
Worked Example
Consider passing a search query containing spaces and special symbols into a web address:
Hello World & Welcome!Hello%20World%20%26%20Welcome%21Notice how the space became %20, the ampersand became %26, and the exclamation mark became %21. When passed as a query value like ?query=Hello%20World%20%26%20Welcome%21, the server reads the exact intended string without splitting parameters at the ampersand.
When to use it
Is my data safe?
Technical Specification, Standards & Practical Use Cases
RFC 3986 Percent-Encoding Architecture & Character Classes
Uniform Resource Identifier (URI) syntax is standardized by the Internet Engineering Task Force in RFC 3986. Because URIs are transmitted across heterogeneous network protocols using a restricted subset of US-ASCII characters, RFC 3986 partitions characters into two strict categories:
- Unreserved Characters (Never Encoded): Uppercase and lowercase alphanumeric letters (
A–Z,a–z), decimal digits (0–9), hyphen (-), period (.), underscore (_), and tilde (~). - Reserved Delimiters: Characters with syntactic meaning inside a URI structure—specifically
: / ? # [ ] @ ! $ & ' ( ) * + , ; =. When any reserved character or non-ASCII UTF-8 byte is used as literal data inside a query parameter or path segment, each UTF-8 octet must be converted to a percent sign (%) followed by its two-digit uppercase hexadecimal value (%HH).
encodeURIComponent() vs. encodeURI() & Form Encoding (+ vs. %20)
In JavaScript, encodeURI() is designed for complete URLs and intentionally leaves protocol and query delimiters (: / ? & =) unencoded. By contrast, encodeURIComponent()—which powers this tool—encodes all reserved delimiters (plus ! ' ( ) * under strict RFC 3986 mode) so arbitrary strings or nested callback URLs can be embedded safely inside a query parameter value. Meanwhile, HTML forms submitted with application/x-www-form-urlencoded follow the WHATWG URL Standard by serializing spaces as plus signs (+) rather than %20. Our decoder normalizes both + and %20 back into spaces automatically.
Practical Web Engineering & Security Use Cases
- OAuth 2.0 & OpenID Connect Redirect URIs: Encoding
redirect_uriandstatequery parameters so nested callback URLs containing?and&do not get truncated by identity providers. - UTM Campaign & Analytics Link Building: Safely encoding spaces, ampersands, and international UTF-8 characters inside marketing query strings.
- API Log & WAF Debugging: Decoding obfuscated, percent-encoded query strings and HTTP referer headers from Nginx, Cloudflare, or AWS ALB access logs locally in your browser.
Frequently Asked Questions
What is URL encoding (percent-encoding)?
URL encoding replaces unsafe ASCII characters and non-ASCII symbols with a percent sign followed by two hexadecimal digits (for example, a space becomes %20). This ensures web servers and browsers interpret URL query strings correctly without breaking links.
What is the difference between encoding a URL and encoding a component?
Encoding an entire URL preserves protocol and path delimiters like "https://", "/", and "?". Encoding a URL component replaces every reserved character, including "&", "=", and "/", which makes it safe to pass complex strings as values inside query parameters.
Does this decoder handle plus signs (+) as spaces?
Yes. In application/x-www-form-urlencoded web query strings, spaces are frequently represented by plus signs (+). When decoding, this tool automatically handles both plus signs and standard %20 sequences as spaces.
Is my data private when using this tool?
Yes. All URL encoding and decoding operations execute entirely inside your web browser. No parameters, sensitive tokens, or URLs are ever transmitted to or stored on our servers.
Related Tools
Convert structured JSON lists to spreadsheet-ready CSV and back.
Convert between JSON and YAML configuration formats.
Encode and decode text or data with full UTF-8 Unicode support.
Generate TypeScript interfaces and types from JSON objects.
Analyze your text for word counts and frequency density.