URL Encoder / Decoder
encodeURI / encodeURIComponent / querystring (+) supported
How to Use
- Enter text or URL
Type or paste the text or URL you want to encode into the input area.
- Encode / Decode
Choose scope (component/full URL/querystring) and encode/decode from the toolbar, then click "Convert".
- Copy result
Use the "Copy" button to copy the result to your clipboard.
URL Encoder / Decoder Examples
Encode a component (encodeURIComponent)
hello worldhello%20worldUse this for encoding query parameter values.
Encode a querystring (+ as space)
q=hello world&lang=enq=hello+world&lang=enQuerystring mode uses + for spaces (x-www-form-urlencoded).
Features
- Component / full URL / querystring (+ as space) support
- Full Unicode and multibyte character support
- Optional line-by-line conversion
- File load and download
- Local processing (your input is not sent to servers)
- Mobile-friendly responsive design
- Dark mode support
FAQ
What is URL encoding?
URL encoding (percent-encoding) represents characters that cannot be used in a URL using a percent sign followed by two hexadecimal digits. For example, a space becomes %20 and the Japanese character "あ" becomes %E3%81%82.
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL but preserves reserved characters like :/?#[]@!$&'()*+,;=. encodeURIComponent also encodes these reserved characters, making it ideal for encoding query parameter values. This tool uses encodeURIComponent.
Is my data sent to a server?
No. All encoding and decoding happens locally in your browser via JavaScript. No data is ever transmitted externally.