URL Encoder / Decoder
The URL Encoder / Decoder converts text to and from URL percent-encoding. Encode a value so it’s safe to drop into a query string, or decode a messy %20-filled URL back into readable text. Choose “Component” for a single value or “Full URL” to keep the URL structure intact.
Component encodes everything (for a single query value or path segment).
Percent-encodes or decodes text for URLs. Use “Component” for a single query value and “Full URL” to keep the URL structure. Everything runs in your browser — nothing is uploaded.
How This Tool Works
Pick Encode or Decode, choose Component (a single value) or Full URL, then type or paste your text. The result updates live and can be copied or swapped back as input with one click.
Formula & Method
URL encoding replaces characters that aren’t allowed in a URL with a “%” followed by their hexadecimal byte value (a space becomes %20). Component scope encodes reserved characters like & ? / = too; full-URL scope leaves those structural characters in place.
Example Calculation
In Encode + Component mode, “hello world&x=1” becomes “hello%20world%26x%3D1”. Switch to Decode to turn it back.
Frequently Asked Questions
What’s the difference between Component and Full URL?+
Component (encodeURIComponent) encodes everything including & ? / = — use it for a single query value or path segment. Full URL (encodeURI) leaves those structural characters alone so a complete URL still works.
Why do I get a decode error?+
Decoding fails when the text has an invalid percent sequence — for example a lone “%” or “%zz” that isn’t a valid hex byte. Fix or remove it and try again.
Is my text uploaded anywhere?+
No — all encoding and decoding happens locally in your browser. Nothing is sent to a server.
Found this useful? Share it
Help someone else out — or link to it from your own site.
Link to this tool
Writing about url encoder / decoder? Paste this on your site to link here.
<a href="https://everyfix.net/tools/url-encoder-decoder/">URL Encoder / Decoder</a> by <a href="https://everyfix.net">EveryFix</a>Related Tools
JSON Formatter
Format, validate, and minify JSON instantly in your browser.
Use tool →Case Converter
Convert text to UPPERCASE, lowercase, Title, camelCase, and more.
Use tool →Number Base Converter
Convert numbers between binary, octal, decimal, and hex.
Use tool →Age Calculator
Calculate your exact age in years, months, and days.
Use tool →