URL Encoder / Decoder
Percent-encode text for URLs, and back.
Result appears here…Runs entirely in your browser — nothing you enter is uploaded or sent to a server.
Component mode escapes reserved characters like & = ? / while full-URL mode leaves them intact — pick the wrong one and a link can break, so choose the mode that fits your case. Read our full disclaimer.
About this tool
URLs can only contain a limited set of characters, so anything else — spaces, &, =, non-ASCII — must be percent-encoded (e.g. a space becomes %20). This tool encodes and decodes both a whole URL and a single URL component, live.
Try it
Encoding "a b&c=d" as a component gives "a%20b%26c%3Dd". Decoding reverses it.
How to use
- 1Choose Encode or Decode.
- 2Toggle 'component' to also encode reserved characters like & = ? /.
- 3Type or paste your input; the result appears instantly to copy.
Features
- Switch between encode and decode in one click.
- Component mode (encodeURIComponent) or full-URL mode.
- Converts live, with a clear error on invalid input.
Frequently asked questions
What's the difference between component and full-URL encoding?
Component encoding (encodeURIComponent) escapes reserved characters like & = ? / too, so it's right for a single query value. Full-URL encoding (encodeURI) leaves those intact so a complete URL stays usable.
More developer tools
View allJSON Formatter
Paste raw JSON and get it neatly indented, minified, or validated — entirely in your browser.
Open toolBase64 Encoder / Decoder
Encode any text to Base64 or decode it back, instantly and locally — with full Unicode and emoji support.
Open toolUUID Generator
Create one or many version-4 UUIDs for IDs, keys, and test data — generated securely on your device.
Open tool