URL codec
URL parsing
· encodeURIComponent: Encode all special characters, suitable for encoding query parameter values
· encodeURI: retain URL structure characters (: / ? #, etc.), suitable for encoding complete URLs
Frequently asked questions
Are URL encoding and decoding tools safe? Will the data be uploaded to the server?
Totally safe. All URL encoding and decoding is done locally in your browser, and the entered URL or text is not uploaded to any server or logged.
What is the difference between encodeURIComponent and encodeURI?
encodeURIComponent (component encoding) will encode almost all special characters (including : / ? # &, etc.), suitable for encoding the value of query parameters; encodeURI (complete URI encoding) will retain URL structural characters, suitable for encoding the entire URL without destroying its structure.
How should Chinese URLs be encoded?
Chinese characters should be encoded using encodeURIComponent and will be converted into a percent encoding form such as %E4%B8%AD%E6%96%87, which can be safely placed anywhere in the URL.
How to parse the various components of a URL?
Paste the complete URL in the input box and click the "Parse URL" button. The tool will automatically disassemble the various parts such as protocol, host name, port, path, query parameters, and Hash for easy inspection one by one.
Can URL encoding and decoding tools be used offline?
Yes. This tool is a single file HTML. After saving the page locally, it can be used normally even if the Internet is disconnected. No installation or registration is required.