URL Encoder/Decoder
Encode and decode URLs and query strings
How to Use URL Encoder/Decoder
- 1
Paste the URL or text you want to encode into the input field.
- 2
Click Encode to convert special characters to percent-encoded format.
- 3
To decode, paste a percent-encoded string and click Decode.
- 4
Copy the result from the output.
About URL Encoder/Decoder
Encode and decode URLs and query strings online. Handles percent-encoding, special characters. Free tool.
Best Use Cases
- •Encoding query parameters that contain spaces or ampersands
- •Decoding a percent-encoded redirect URL from an API response
- •Preparing a URL with non-ASCII characters for an HTTP request
- •Fixing broken links caused by unencoded special characters
- •Encoding a file path segment before appending it to a URL
Examples
Encode a search query
Paste 'hello world & more' and click Encode to get 'hello%20world%20%26%20more'.
Decode a redirect URL
Paste a percent-encoded URL from an OAuth callback and click Decode to read it.
Encode a full URL
Paste a URL with Unicode characters. The tool encodes only the unsafe characters.
Common Mistakes to Avoid
- !Encoding an entire URL instead of just the query parameter values
- !Double-encoding a string that is already percent-encoded
- !Confusing + (form encoding) with %20 (URL encoding) for spaces
Limitations
- –Uses JavaScript encodeURIComponent, which differs from form encoding
- –Does not parse or validate the URL structure itself
- –Cannot encode binary data; use Base64 for that
Frequently Asked Questions
When should I URL encode?
URL encode query parameters that contain special characters like spaces, &, =, +, ?, #. These characters have special meaning in URLs.
Related Guides
What is Base64 Encoding? A Plain-English Explanation
Base64 pops up everywhere — in emails, APIs, HTML, and CSS. Here's what it actually is, why it exists, and when to use it.
Read guide →How QR Codes Work — and How to Create Your Own for Free
QR codes are everywhere, but most people don't know how they work. This guide explains the technology behind them and shows you how to generate one in seconds.
Read guide →