URL Encoder/Decoder
Encode and decode URL query strings and paths
About This Calculator
URL encoding (percent encoding) converts characters that are unsafe or reserved in URLs into a format that can be transmitted correctly. Characters like spaces, ampersands, question marks, and non-ASCII characters are replaced with percent-encoded equivalents (e.g., space becomes %20). This tool encodes and decodes entire URLs or individual URL components. Developers need URL encoding when constructing query strings with user input, passing data through URL parameters, encoding redirect URLs, and working with APIs that expect URL-encoded request bodies (application/x-www-form-urlencoded). Incorrect encoding is a common source of bugs in web applications.
How to Use
- 1Paste a URL or stringEnter the URL or text you want to encode or decode.
- 2Choose encode or decodeSelect whether to percent-encode or decode the input.
- 3Copy the resultCopy the encoded or decoded output for use in your application.
Frequently Asked Questions
Q. What characters need to be URL encoded?
Q. What is the difference between encodeURI and encodeURIComponent?
Q. Why does my URL break when it contains spaces or special characters?
Disclaimer: Results are for informational purposes only and do not constitute professional advice. Always consult qualified professionals for important decisions.