URL Encoder / Decoder
Percent-encode text for safe use in URLs, or decode an encoded URL back to readable text. Instant, free and fully in-browser.
How to use the URL Encoder / Decoder
- Choose Encode or Decode.
- Paste your text or URL into the input box — the result updates as you type.
- Use "Encode component" for query-string values, which also encodes characters like /, ? and &.
- Click Copy to grab the output.
About this tool
URLs may only contain a limited set of ASCII characters. Everything else — spaces, quotes, non-Latin letters, emoji — must be percent-encoded, which is why a link to “münchen restaurants” becomes m%C3%BCnchen%20restaurants in your address bar.
This tool works in both directions: encode raw text so it survives inside a link or query parameter, or decode an encoded URL to see what it actually says — useful when debugging redirect chains, UTM parameters or webhook payloads.
The two encode modes match the two JavaScript primitives underneath: full-URL mode (encodeURI) preserves URL structure, while component mode (encodeURIComponent) escapes everything and is what you want for individual parameter values.
Frequently asked questions
- What is the difference between encoding a URL and a component?
- Encoding a full URL keeps structural characters like :, / and ? intact. Encoding a component escapes those too — use it for individual query-string values.
- Why do spaces become %20 and not +?
- Percent-encoding defines %20 for spaces. The + form is a legacy convention only valid inside query strings; %20 is safe everywhere.
- Why does decoding sometimes fail?
- A % sign not followed by two hex digits is malformed. Decode fails rather than guessing, so you know the input was corrupted.
Related tools
Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to text, with full Unicode support. Runs locally — safe for tokens and secrets.
JSON Formatter & Validator
Format, validate and minify JSON instantly in your browser. Clear error messages with line hints — your data is never uploaded.
UUID Generator
Generate one or many random version-4 UUIDs using your browser’s cryptographic random source. Copy individually or all at once.
Age Calculator
Work out an exact age in years, months and days from a date of birth, plus total days lived and a countdown to the next birthday.