

Encode or decode URLs, query strings, and text for safe use in web requests. Handles full URLs, component encoding, and query string format. Runs in your browser. No signup required.
Try a sample
Encode output will appear here
Enter text on the left. Result updates live as you type.
3 scopes
Component, full URL, and query string.
Live preview
Output updates as you type. No button.
100% private
Text never leaves your browser.
URL Encoder / Decoder is a free online tool that converts text to and from percent-encoded form. Use it to encode a value for a URL, decode a link that came from a server, or fix a broken query string. The result updates live as you type, so you can see exactly what changes.
Three scopes cover the common cases. Component encoding encodes everything unsafe in a single value, which is what encodeURIComponent does. Full URL mode preserves the ://, ?, and & structure of a complete link and only encodes the unsafe parts, which is what encodeURI does. Query string mode encodes only keys and values while keeping the = and & separators, which is what most form submissions need.
The tool also detects common errors, like a bare % sign or an invalid hex sequence, and warns when the input already looks encoded (the double-encoding trap). A Plus-as-space toggle lets you switch between the URL standard (%20) and the form-encoding convention (+).
Everything runs in your browser. Your text never leaves your device. There is no server call, no upload, and no logging.
Follow these simple steps. No signup, no installation, no waiting.
Pick Encode to make text safe for URLs, or Decode to turn an encoded string back into readable text.
Component for a single value, Full URL for a complete link, or Query string for form-encoded data. Each has a live example.
Type or paste text, a URL, or a query string into the left box. The result updates live as you type, no button needed.
Click Copy to grab the result. Use the Swap button to flip the output back into the input and reverse the mode.
Everything you need to get the job done. Nothing you do not.
Convert text to and from percent-encoded form.
Component, full URL, and query string.
Output updates as you type. No button.
Push the output back into the input and reverse the mode.
Flags bare % signs, invalid hex, and double encoding.
Text never leaves your browser. No tracking.
Built for privacy, speed, and simplicity. No tricks, no hidden costs, no compromises.
Your files never leave your device. Nothing is uploaded to any server.
No uploads means no waiting. You get results in seconds, not minutes.
No accounts, no email, no tracking. Just open the tool and use it.
Any device with a modern browser. Free forever, no limits.
Real world scenarios where URL Encoder / Decoder saves you time and hassle.
Encode query parameters for API calls and shared URLs.
Decode a messy URL to see what the server actually received.
Encode form values for application/x-www-form-urlencoded bodies.
Quickly check how a value will look in a URL.
Spot stray %, invalid hex, or double encoding.
See exactly which characters get encoded and why.
Deeper technical details and comparisons to help you make the right choice.
URL encoding, also called percent encoding, replaces unsafe characters with a % sign followed by two hex digits. A space becomes %20, & becomes %26, and # becomes %23. Letters, digits, and a small set of unreserved punctuation (- _ . ~) are left as-is.
Different scopes matter because encodeURIComponent and encodeURI handle reserved characters differently. encodeURIComponent encodes everything that is not unreserved, which is right for a single value. encodeURI keeps the reserved characters that have structural meaning (: / ? # & =), which is right for a complete URL.
The most common bug is double encoding: a value like hello%20world gets encoded again to hello%2520world, where %25 is the encoding of %. If you see %25 in the output when you did not expect it, the input was probably already encoded.
The second most common issue is mixing plus and percent encoding. Spaces are %20 in the URL standard, but + in application/x-www-form-urlencoded form data. Servers often accept both, but browsers and APIs vary. The Plus-as-space toggle handles this without guesswork.
URLs are limited to a small character set, but people need to send text, JSON, and symbols through them. Percent encoding is the escape hatch: any byte can be represented as %XX, and the receiving server decodes it back to the original byte.
This is also why unicode text often looks long after encoding. Each non-ASCII character becomes multiple bytes, each byte becomes %XX, so a single emoji can become 12 characters or more in the URL.
Quick answers to the most common questions about URL Encoder / Decoder.
URL encoding replaces characters that are not safe for URLs (spaces, &, =, ?, #, and others) with percent-encoded equivalents. For example, a space becomes %20 and & becomes %26. This lets text travel safely through web requests.
URL encoding (percent encoding) uses %20 for spaces. The + symbol is a form-encoding convention, not part of the URL standard. The Plus-as-space checkbox lets you switch between the two conventions when decoding form-encoded data.
Yes. Everything runs in your browser. Your text never leaves your device. There is no server call, no upload, and no logging.
Component encoding encodes everything that is not a letter, digit, or unreserved punctuation, which is right for a single value. Full URL keeps the ://, ?, and & structure of a link and only encodes unsafe parts. Query string encodes only keys and values, keeping the = and & separators intact.
A decode error almost always means a % sign is not followed by two hex digits (0-9, A-F). Check the input for bare % signs, truncated sequences, or non-URL content, and encode it again.
Yes. Pick Query string scope and paste the full string, like a=1&b=hello world. The encoder keeps the = and & intact and only encodes the values, so the resulting URL still works.
Try it now. No signup, no limits, no catch. It is free forever.