URL Encoder / Decoder
Percent-encode and decode URLs and query strings, in whole-URL or single-component mode — instant and private in your browser.
This URL encoder percent-encodes and decodes URLs and query strings, both ways. Use it to URL-encode a query value, decode a percent-encoded string, or escape special characters like spaces and ampersands so a link works. It offers a whole-URL mode and a single-component mode, so separators are kept or encoded depending on what you need. It runs in your browser.
How it works
- 1
Pick encode or decode
Choose whether to encode raw text or decode a percent-encoded string.
- 2
Choose the scope
Encode a full URL (keeping separators) or a single component (encoding everything).
- 3
Copy the result
Copy the encoded or decoded string straight into your code or address bar.
Instant & 100% private — nothing is uploaded
Everything runs locally in your browser. Your code, text and files are processed on your own device and are never sent to a server — so there are no upload waits, no size limits from us, and nothing is ever stored or logged.
Frequently asked questions
- What is the difference between component and full-URL encoding?
- Component mode (encodeURIComponent) encodes reserved characters like &, = and ? — use it for query values. Full-URL mode (encodeURI) preserves those separators so the URL still works.
- Does it handle spaces and special characters?
- Yes. Spaces become %20, and reserved or non-ASCII characters are percent-encoded as UTF-8, exactly as browsers and servers expect.
- Why does decoding fail sometimes?
- A malformed percent-sequence (for example a stray % not followed by two hex digits) is invalid; the tool flags it so you can correct the input.
More tools
More from the Hivly network
Free sister tools on our other sites.