URL Encoder & Decoder
Fast, client-side URL percent-encoding and decoding. Encode special characters, query parameters, and Unicode strings securely in your browser.
What Is URL Encoding (Percent-Encoding)?
URL encoding, officially specified as percent-encoding in the RFC 3986 Uniform Resource Identifier (URI) specification, is a mechanism for converting characters into a safe format that can be reliably transmitted over the internet across any web server, browser, or proxy.
The standard URI character set is restricted to a small subset of US-ASCII characters: unreserved letters (A–Z, a–z), numbers (0–9), and four symbols (-, _, ., ~). Any other characters—such as spaces, punctuation, quotes, German umlauts (ä, ö, ü, ß), and emojis—must be converted into a percent sign (%) followed by two hexadecimal digits representing their UTF-8 byte values.
%20. An ampersand (&) becomes %26. A German "ä" becomes %C3%A4.What Is URL Decoding?
URL decoding is the reverse process of percent-encoding. It parses hexadecimal triplets (e.g., %2F) and restores the original characters (e.g., /) or multi-byte UTF-8 Unicode characters.
When web servers or APIs receive HTTP GET query parameters, they automatically decode the percent-encoded strings so that application code reads natural text (for instance, reading a search query "developer tools" rather than "developer%20tools").
Common URL Encoded Characters Reference Table
A quick-reference lookup for common reserved characters and their RFC 3986 percent-encoded hexadecimal values:
| Character | Name | Percent Code | Purpose / Delimiter |
|---|---|---|---|
| <space> | Space | %20 (or +) | Separates words in query values |
| ! | Exclamation mark | %21 | Reserved sub-delimiter in RFC 3986 |
| " | Double quote | %22 | Delimiter in JSON and HTML attributes |
| # | Number sign / Hash | %23 | Fragment identifier anchor delimiter |
| $ | Dollar sign | %24 | Reserved sub-delimiter in URLs |
| % | Percent sign | %25 | Escape character for percent-encoding |
| & | Ampersand | %26 | Separates query string key-value pairs |
| ' | Single quote | %27 | Reserved sub-delimiter in RFC 3986 |
| ( | Open parenthesis | %28 | Reserved sub-delimiter in RFC 3986 |
| ) | Close parenthesis | %29 | Reserved sub-delimiter in RFC 3986 |
| + | Plus sign | %2B | Represents space in form-encoded queries |
| , | Comma | %2C | Reserved sub-delimiter for lists in parameters |
| / | Forward slash | %2F | Path segment separator |
| : | Colon | %3A | Scheme/port separator |
| ; | Semicolon | %3B | Sub-delimiter in path segments |
| < | Less than | %3C | Unsafe character in HTML contexts |
The Difference: encodeURI vs. encodeURIComponent
Designed to encode an entire complete URL. It assumes the string already has URL structure and preserves protocol delimiters, host slashes, query initiators (://, /, ?, &, #, =).
➔ "https://site.com/search?q=a&b=1"
Designed for single query parameter values or path segments. It encodes all reserved characters including /, ?, &, and = so they do not conflict with the outer URL structure.
➔ "https%3A%2F%2Fsite.com%2Fsearch%3Fq%3Da%26b%3D1"
Practical Use Cases for URL Encoding
Query Parameters in Web APIs
When passing complex strings, email addresses, or search terms into GET parameters (e.g. user=john@doe.com becomes user=john%40doe.com).
OAuth & OpenID Redirect URIs
Authentication flows require passing the redirect callback URL as a parameter (e.g. redirect_uri=https%3A%2F%2Fmyapp.com%2Fcallback) so security gateways do not truncate parameters.
International URLs (IDN & Unicode)
Encoding non-ASCII characters like German umlauts (ä, ö, ü, ß), French accents, Cyrillic, and emojis ensures universal link compatibility across legacy routers and firewalls.
Frequently Asked Questions
Clear, concise answers to common questions about Base64 decoding, encoding, and specifications.
Explore More Free Tools on Toolstack
Client-side developer utilities, image converters, calculators, and educational engineering guides.
Word Counter
Count words, characters with/without spaces, sentences, and paragraphs in real time with reading speed metrics.
PDF Compressor
Reduce PDF document file size directly in your browser with zero server uploads.
Image Compressor & Resizer
Batch compress and scale JPG, PNG, and WebP images with custom quality settings.
URL Encoder & Decoder
Encode and decode query strings, special characters, and parameters with RFC 3986 percent-encoding.
JSON Validator & Formatter
Beautify, validate, minify, and auto-fix JSON syntax errors with real-time line/column diagnostics.
HEIC to JPG Converter
Convert Apple iPhone HEIC and HEIF photos to high-quality JPG directly in your browser.