URL Encoder / Decoder
Encode, decode, and parse URLs and query strings — instantly, in your browser.
100% in your browser — files never leave your device
Output appears here.
How URL encoding, decoding, and parsing work
Encode mode wraps the two built-in JavaScript functions people actually need: encodeURIComponent for a single value going into a query string, and encodeURI for a complete URL where you want to preserve the structural characters (: / ? # & =) and only encode the rest. Pick wrong and a fully-encoded query value ends up double-encoded, or a component-encoded full URL gets mangled — the toggle here makes the choice explicit.
Parse mode accepts either a full URL or a bare query string and breaks it into protocol, host, pathname, hash, and a table of every query parameter — built on the native URL and URLSearchParams classes rather than a hand-rolled parser, so edge cases like repeated keys are handled the way browsers actually handle them.
Decode mode intentionally throws on malformed percent-encoding — a bare % or an invalid hex pair — rather than silently passing it through mangled. That's the same behavior decodeURIComponent has in any JavaScript runtime, surfaced here as a readable error instead of a console exception.
Frequently asked questions
Is anything sent to a server?
No. Encoding, decoding, and URL parsing all run in your browser using native JavaScript APIs. No data leaves your device.
What is the difference between encodeURIComponent and encodeURI?
encodeURIComponent encodes everything except letters, digits, and - _ . ! ~ * ' ( ). encodeURI additionally leaves : / ? # [ ] @ & = + $ , ; % intact — it is meant for full URLs where you want to preserve URL structure. Use encodeURIComponent for individual query values; use encodeURI when encoding a complete URL.
Why does decoding sometimes show an error?
decodeURIComponent throws on malformed percent-sequences like a bare % or %xy where xy is not valid hex. The tool surfaces the browser's exact error so you can identify the offending character.
Related tools
How to use URL Encoder
Use the free tool above, or check the options on your device. No subscription or account is required for the browser tool.
URL Encoder in your browser
Free browser tool — no installation
- Choose Encode, Decode or Parse and paste the URL or query text.
- For encoding, choose whether to preserve full-URL separators.
- Review and copy the encoded, decoded or parsed result.
Encoding changes syntax; it does not check whether a destination is safe.
Processing happens on your device in the browser. Large files may exceed your device’s available memory.
URL Encoder on Mac
Free browser tool — no installation
Use the tool on this page in Safari, Chrome, or Firefox. These steps use the browser tool; they do not require an extra app.
- Choose Encode, Decode or Parse and paste the URL or query text.
- For encoding, choose whether to preserve full-URL separators.
- Review and copy the encoded, decoded or parsed result.
Encoding changes syntax; it does not check whether a destination is safe.
Processing happens on your device in the browser. Large files may exceed your device’s available memory.
For file tools, choose a copy of the original. Find saved results in your browser’s Downloads menu; your browser may ask where to save them. If processing fails, keep the original and try a smaller file or a desktop browser.
URL Encoder on Windows
Free browser tool — no installation
Use the tool on this page in Edge, Chrome, or Firefox. These steps use the browser tool; they do not require an extra app.
- Choose Encode, Decode or Parse and paste the URL or query text.
- For encoding, choose whether to preserve full-URL separators.
- Review and copy the encoded, decoded or parsed result.
Encoding changes syntax; it does not check whether a destination is safe.
Processing happens on your device in the browser. Large files may exceed your device’s available memory.
For file tools, choose a copy of the original. Find saved results in your browser’s Downloads menu; your browser may ask where to save them. If processing fails, keep the original and try a smaller file or a desktop browser.
URL Encoder on iPhone / iPad
Free browser tool — no installation
Use the tool on this page in Safari or another current browser. These steps use the browser tool; they do not require an extra app.
- Choose Encode, Decode or Parse and paste the URL or query text.
- For encoding, choose whether to preserve full-URL separators.
- Review and copy the encoded, decoded or parsed result.
Encoding changes syntax; it does not check whether a destination is safe.
Processing happens on your device in the browser. Large files may exceed your device’s available memory.
For file tools, choose Browse in the file picker to find a document in Files. A result may open in a preview; use Share → Save to Files when offered. If processing fails, keep the original and try a smaller file or a desktop browser.
URL Encoder on Android
Free browser tool — no installation
Use the tool on this page in Chrome or another current browser. These steps use the browser tool; they do not require an extra app.
- Choose Encode, Decode or Parse and paste the URL or query text.
- For encoding, choose whether to preserve full-URL separators.
- Review and copy the encoded, decoded or parsed result.
Encoding changes syntax; it does not check whether a destination is safe.
Processing happens on your device in the browser. Large files may exceed your device’s available memory.
For file tools, choose a document from the system file picker. Saved downloads are usually available in your browser’s Downloads menu or your file manager. If processing fails, keep the original and try a smaller file or a desktop browser.