URL Encoder/Decoder β Encode and Decode URLs Free in Your Browser
Encode special characters in URLs or decode percent-encoded strings instantly. Supports full URL and component encoding modes. Private, offline, and free.
URLs have strict rules about which characters are allowed. Characters like spaces, &, =, +, and non-ASCII characters must be percent-encoded before they can be used in a URL. SimpleTools URL Encoder/Decoder handles both directions instantly β encode special characters for safe transmission or decode encoded URLs to human-readable form.
What Is URL Encoding?
URL encoding (also called percent encoding) replaces unsafe characters with a % followed by their hexadecimal code point. For example:
- Space β
%20 &β%26=β%3D+β%2B@β%40/β%2F- Non-ASCII characters like
Γ©β%C3%A9(UTF-8 bytes)
This ensures that the URL is unambiguous β characters that have structural meaning in URLs (like & and = in query strings) donβt get confused with literal data.
Two Encoding Modes
Full URL encoding (encodeURI): Encodes a complete URL, preserving the URL structure characters (/, :, ?, &, =, #). Use this when you have a full URL that needs encoding.
Component encoding (encodeURIComponent): Encodes a URL component (like a query parameter value), encoding ALL special characters including &, =, and ?. Use this for individual query parameter values.
Example:
Input: https://example.com/search?q=hello world&lang=en
encodeURI: https://example.com/search?q=hello%20world&lang=en
encodeURIComponent: https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Dhello%20world%26lang%3DenFeatures
- Encode URL: Full URL or component mode
- Decode URL: Decode any percent-encoded string
- Auto-detect: Identify whether input is encoded or plain text
- Live conversion: Encodes/decodes as you type
- Form data encoding: Encode data for
application/x-www-form-urlencodedformat (+for spaces) - Copy output: One-click copy of the result
- Batch mode: Encode/decode multiple values at once
Why Use a Browser-Based Encoder?
URL parameters sometimes carry sensitive values β authentication tokens, session IDs, user identifiers. Processing these in a local browser tool is more secure than sending them to a cloud API.
β
Your URLs and values never leave your browser
β
Works offline
β
No logs, no tracking
β
Free forever
How It Works
JavaScript has built-in URL encoding functions:
// Encode a full URL (preserves URL structure)
encodeURI('https://example.com/search?q=hello world');
// "https://example.com/search?q=hello%20world"
// Encode a URL component (encodes everything)
encodeURIComponent('hello world & more');
// "hello%20world%20%26%20more"
// Decode percent-encoded string
decodeURIComponent('hello%20world%20%26%20more');
// "hello world & more"The tool wraps these native browser functions and handles edge cases like invalid encoding sequences, double-encoding, and mixed encoding.
How to Use the URL Encoder/Decoder
- Visit simpletools.one/url-encoder
- Paste your URL or text in the input field
- Select Encode or Decode
- Choose encoding mode: Full URL or Component
- The result appears instantly
- Click Copy to copy the output
Common Use Cases
API development: Encode query parameter values when building API request URLs by hand.
Decoding log entries: Application logs often contain percent-encoded URLs β decode them to understand the original request.
Form submissions: Debug application/x-www-form-urlencoded POST body data by decoding the encoded form values.
OAuth/authentication: OAuth callback URLs and state parameters are often double-encoded β decode layer by layer to inspect.
i18n URLs: Encode non-ASCII characters in internationalized URLs containing accented characters, Chinese, Arabic, etc.
Quick Reference
| Character | Encoded | Use Case |
|---|---|---|
| Space | %20 (or + in form data) | Query values with spaces |
& | %26 | Literal ampersand in query value |
= | %3D | Literal equals sign in query value |
+ | %2B | Literal plus sign (not space) |
/ | %2F | Literal slash in path segment |
? | %3F | Literal question mark in query value |
# | %23 | Literal hash in query value |
@ | %40 | Literal at sign |
Encode and decode URLs at simpletools.one/url-encoder β instant, private, and completely free.