URL Encoder & Decoder
Encode or decode URLs and query values live, with component or full URL scope
- 100% Free
- Files stay private
- Works in your browser
Input
Paste the text or URL you want to convert. It updates live as you type.
Componentescapes every reserved character (?, &, =, /, #, :) so the text is safe to drop into one query value or path segment. Full URL leaves the URL delimiters alone, so you can encode a complete address without breaking it.
Result
The percent-encoded output.
Everything runs in your browser. Your text never leaves this page. Encoding and decoding update live as you type.
How it works
Pick Encode or Decode
Choose Encode to turn text into a URL-safe form, or Decode to turn percent codes like %20 back into readable text.
Paste your text
Paste your text or URL into the box. When encoding, choose Component or Full URL in Encoding scope; it all runs in your browser.
Copy or download the result
The Result updates live as you type. Press Copy to grab it, or Download to save it as a text file.
The URL Encoder & Decoder converts text and links to and from percent-encoding, so special characters travel safely through browsers, APIs, and query strings instead of breaking your request.
What Is the URL Encoder & Decoder?
URLs can only carry a limited set of characters, so anything outside that set (spaces, ampersands, question marks, non-English letters) has to be swapped for a percent code like %20. This tool does that swap in both directions: it encodes text into a URL-safe form and decodes percent-encoded strings back into readable text. It works live in your browser as you type, and nothing is sent to a server, so even sensitive query values stay on your machine. It's free with no limits.
Who Benefits from This Tool
- Back-end developers: encode values before dropping them into a query string or API call.
- QA engineers: decode a long, escaped URL from a bug report to see the real parameters.
- Technical SEOs: read messy tracking URLs and spot double-encoded UTM parameters.
- API integrators: confirm a webhook payload's URL fields are escaped the way the docs require.
- Support engineers: untangle an encoded redirect link a customer pasted into a ticket.
- Students learning web basics: see exactly how %-encoding maps to plain characters.
Key Features
- Encode and decode: switch between escaping text and unescaping it in the same tool.
- Component mode: uses encodeURIComponent, which escapes ? & = and / so a value stays intact inside a parameter.
- Full-URL mode: uses encodeURI, which preserves URL structure so slashes and separators aren't mangled.
- Live conversion: output updates as you type, no button to press, no waiting.
- Tolerant decoding: handles malformed or partially encoded input without throwing an error at you.
- In-browser processing: everything runs locally, so pasted tokens and query values never leave your device.
How to Use
- Pick a direction: encode to escape text, or decode to unescape it.
- For encoding, choose component mode for a single value or full-URL mode for a whole link.
- Paste or type your text into the input box.
- Read the converted result, which updates instantly as you edit.
- Copy the output and drop it into your code, browser, or API request.
Common Use Cases
- Encoding a search phrase with spaces and an ampersand before appending it to a query string.
- Decoding a redirect URL buried inside another URL's parameter to see where it points.
- Fixing a link where an already-encoded value got encoded a second time.
- Escaping a JSON string or token so it can ride safely in a URL parameter.
- Reading a non-English filename in a download link that shows up as a wall of percent codes.
Tips and Best Practices
- Use component mode for individual parameter values and full-URL mode for a complete address.
- If a decoded string still has %25 in it, it was likely encoded twice. Decode again.
- Encode each query value separately before you stitch them together with & and =.
- A space becomes %20 in URLs; a plus sign is only a space inside form-encoded bodies, so don't confuse the two.
- When in doubt about a full link, encode with full-URL mode so you don't accidentally escape the slashes.
Limitations and Notes
This tool handles percent-encoding only. It isn't a Base64 converter, a URL shortener, or a validator that checks whether a link actually resolves. It won't tell you if a URL is safe to visit or whether its parameters are correct; it just transforms the text. Because everything runs in your browser, there's no history, and the text you encode or decode is never sent anywhere.
FAQs
Component mode (encodeURIComponent) escapes reserved characters like ? & = and /, which is right for a single value. Full-URL mode (encodeURI) leaves those structural characters alone so a complete link keeps working.
Spaces aren't legal in a URL, so they're replaced with the percent code %20. Some systems use a plus sign instead, but that only applies inside form-submitted data, not in the path or query.
Yes, but you'll need to run decode twice. If you still see sequences like %25 after one pass, that's a leftover percent sign telling you another layer remains.
No. The conversion happens entirely in your browser, so tokens, IDs, and any other values you paste never touch a server.
Decoding is tolerant, so partially or incorrectly encoded text won't crash the tool. It does its best to return a readable result instead of throwing an error.
No. It only encodes or decodes characters. The link's length and structure stay the same apart from the escaped characters.