URL Encoder / Decoder

Encode special characters for URLs or decode percent-encoded strings instantly. Supports both encodeURIComponent and encodeURI modes.Updated 2026-03-16

Ctrl+Enter Run   Ctrl+Shift+C Copy output
Input
Output

How to Use URL Encoder/Decoder

  1. Paste your URL or text into the input box.
  2. Select encoding mode: encodeURIComponent (for query params) or encodeURI (for full URLs).
  3. Click Encode to convert special characters, or Decode to reverse the process.
  4. Use Swap to quickly switch input and output for bidirectional encoding.

All processing happens locally in your browser. Your data is never uploaded to any server.

URL Encoding Reference Table

CharacterEncodedDescription
space%20Space character
!%21Exclamation mark
#%23Hash / Fragment
&%26Ampersand
=%3DEquals sign
?%3FQuestion mark
@%40At sign

Frequently Asked Questions

What is URL encoding?

URL encoding (also called percent-encoding) converts special characters into a format that can be safely transmitted in URLs. Characters like spaces, ampersands, and question marks are replaced with percent-encoded equivalents (e.g., space becomes %20).

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URI but preserves reserved characters like :, /, ?, #, and &. Use it for encoding complete URLs. encodeURIComponent encodes everything except letters, digits, and - _ . ~ making it perfect for encoding individual query parameter values.

Is my data safe when using this tool?

Absolutely. All encoding and decoding is performed locally in your browser using JavaScript. No data is ever sent to any server. You can even use this tool offline.

Rate this tool