URL Encoder & Decoder
Encode and decode URL parameters, query strings, and full URLs instantly. Converts special characters, spaces, and non-ASCII text to percent-encoded format (%20, %26, etc.) and back. Essential for building API requests, handling query parameters, fixing broken links, and working with redirects. All processing is in-browser.
Common URL Encoded Characters
| Character | URL Encoded | Description |
|---|---|---|
| Space | %20 | Space character in URLs |
| & | %26 | Separates query parameters |
| = | %3D | Assigns values in query strings |
| ? | %3F | Starts the query string |
| # | %23 | Marks fragment identifier |
| + | %2B | Plus sign |
| % | %25 | Percent sign itself |
| / | %2F | Path separator |
| @ | %40 | Email addresses or usernames |
| : | %3A | Protocol separator |
What is URL Encoding?
URL encoding (also called percent-encoding) converts characters that are not allowed in a URL into a safe format. Each unsafe character is replaced with a % followed by two hexadecimal digits representing the character's ASCII or UTF-8 code.
For example, a space becomes %20, and & becomes %26. This ensures the URL can be safely transmitted and interpreted by browsers and servers.
Common Encoded Characters
| Character | Encoded | Usage |
|---|---|---|
| Space | %20 | Spaces in parameter values |
| & | %26 | Separates query parameters |
| = | %3D | Assigns values in query strings |
| + | %2B | Plus sign in parameter data |
| # | %23 | Hash — reserved for fragments |
| ? | %3F | Query string start character |
Tips & Tricks
- Encode individual parameter values, not the entire URL
- Use
encodeURIComponent()in JavaScript for query values - Use
encodeURI()for full URL encoding (preserves /, ?, &) - In form data, spaces can be encoded as
+instead of %20 - Non-ASCII chars (Unicode) need UTF-8 encoding before percent-encoding
Common URL Encoding Use Cases
Query Strings
Encode values in URL query parameters so special characters are transmitted safely.
API Requests
Encode search terms, filters, and data before appending them to API endpoints.
Redirects
Encode redirect_uri parameters in OAuth flows and SSO configurations.
Form Data
Properly encode form submission data for POST requests with special characters.