URL Encoder
Percent-encode query parameters (encodeURIComponent) or full URLs (encodeURI).
Privacy Notice: Runs locally in your browser without uploading files to external servers or requiring an account.
Interactive Browser Workspace
Loading the interactive URL Encoder workspace. Enable JavaScript in your browser to run calculations and conversions locally.
How to Use URL Encoder
- Paste a URL or query parameter value.
- Choose Component mode (for query values) or Full URI mode (preserves `://` and `/`).
Methodology & Accuracy
Uses standard JavaScript `encodeURIComponent` and `encodeURI`.
Examples
- "hello world & more" encodes to "hello%20world%20%26%20more" in Component mode.
Scope & Limitations
- Component mode encodes `/`, `?`, and `=`; use Full URI mode if encoding a complete address.
Frequently Asked Questions
When should I use Component vs Full URI mode?
Use Component mode for individual query parameter values, and Full URI mode when encoding an entire URL path.
Why do spaces turn into `%20` instead of `+`?
RFC 3986 percent-encoding (`encodeURIComponent`) encodes spaces as `%20`, which works reliably across URL paths, fragments, and query values.
Which characters stay unencoded in Component mode?
Letters, digits, and the unreserved symbols `- _ . ! ~ * ' ( )` remain unescaped, while reserved characters like `?`, `&`, `=`, and `/` are percent-encoded.
Related Tools
- URL Decoder - Decode percent-encoded URLs and query strings back into readable text.
- HTML Entity Encoder - Escape <, >, &, quotes, and optional non-ASCII characters into safe HTML entities.
- Base64 Encoder - Encode plain UTF-8 text or uploaded small files into clean Base64 strings.