URL Encoder & Decoder
Encode or decode URLs and query parameters instantly. Full URL or component-only mode. browser-based.
What Is URL Encoding?
URL encoding (percent-encoding) converts special characters into a format that can be transmitted in a URL. For example, spaces become %20 and ampersands become %26. This ensures URLs are valid and parsed correctly by browsers and servers.
How to Encode or Decode a URL
- Choose Mode — Select Encode or Decode tab
- Select Scope — Pick Component Only (for query values) or Full URL (preserves :// and /)
- Type or Paste — Enter your text and see results update in real-time
- Copy — Click Copy to grab the result
Why Use This URL Encoder?
- Two Modes — Component-only (encodeURIComponent) for query params, or Full URL (encodeURI) that preserves URL structure
- Real-Time — Results update as you type, no button clicks needed
- Swap Button — Quickly swap input and output to reverse the operation
- Privacy — Runs entirely in your browser, no data sent to any server
FreeToolbox vs Other URL Encoders
| Feature | FreeToolbox | urlencoder.org | meyerweb.com |
|---|---|---|---|
| Real-time | Yes | No (button) | No (button) |
| Component/Full modes | Both | Component only | Component only |
| Swap I/O | Yes | No | No |
| Ads | Minimal | Heavy | None |
| Mobile-friendly | Yes | Partial | Partial |
FAQ
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL but preserves characters like :, /, ?, and #. encodeURIComponent encodes everything, making it suitable for individual query parameter values.
When should I use Component mode?
Use Component mode when encoding a value that will be placed inside a query parameter, such as a search term or API key value.
When should I use Full URL mode?
Use Full URL mode when you want to encode an entire URL while keeping its structure (protocol, path, etc.) intact.
Does this tool handle Unicode?
Yes. Unicode characters are properly encoded to their UTF-8 percent-encoded representation.
Is my data safe?
Yes. All encoding and decoding happens in your browser. No data is sent to any server.