URL Encoder & Decoder Online
Percent-encode or decode URLs and query parameters safely.
Encoded
https%3A%2F%2Fveojson.com%2Ftools%3Fq%3Dhello%20world%26lang%3Dfr
Decoded
https://veojson.com/tools?q=hello world&lang=fr
Join the Veojson dispatch
Get the weekly Veojson dispatch on API design, encoding gotchas and developer tooling.
One email, no spam, unsubscribe any time.
About this tool
Percent encoding replaces unsafe characters with a % followed by two hex digits so they survive transport in a URL. This tool runs encodeURIComponent and decodeURIComponent (plus full-URI variants) locally in your browser.
Component vs full URI
Use component mode for a single query value — it escapes &, =, ? and /. Use full URI mode when encoding a complete address you do not want to break.
Spaces and plus signs
Percent encoding turns a space into %20. Some form encoders use + instead; decode with the matching mode or you will get literal plus characters back.
How to use URL Encoder & Decoder
- 1
Paste your text
Add a URL, a query parameter or an already-encoded string.
- 2
Choose the mode
Component encodes a single parameter (encodeURIComponent); Full URI encodes a whole URL (encodeURI).
- 3
Copy the output
The encoded or decoded result is ready to paste into your code or browser bar.
- 4
Troubleshoot decoding
If decoding fails, look for a % that is not followed by two hexadecimal digits — that is the usual cause.
Best practices
- Work from a real payload, not a hand-typed sample — encoding bugs hide in whitespace and Unicode.
- Keep the transformation reproducible: script it in CI once you have confirmed the output here.
- Never paste live credentials, customer records or production tokens into any web tool you have not audited.
- Version the inputs and outputs you rely on so a teammate can reproduce the same result later.
URL Encoder & Decoder — Why it matters
Small integration details — an encoding, a claim, a header — are where most API bugs actually live, and they are expensive to find in production logs.
Getting them right in seconds keeps debugging sessions short and prevents malformed data from reaching downstream systems.
Related free & paid tools
| Tool name | Type | Key features | Link |
|---|---|---|---|
| MDN encodeURIComponent | Free | The exact semantics your browser applies | Visit |
| CyberChef | Free | URL, HTML and double-encoding recipes | Visit |
| PostmanOffer | Freemium | Automatically encodes query params and paths | Visit |
Some links marked Offer are partner links. They cost you nothing extra and help keep these tools free.