🔗

URL Encoder Online — Encode URLs & Query Parameters

encodeURIComponent · encodeURI · RFC 3986 — Query Params Table · URL Builder · Batch Mode — 100% browser-side

Samples:
INPUT — PLAIN TEXT / URL
OUTPUT — ENCODED
🔗

Paste text → get encoded URL

Real-time · 200ms debounce · No button click needed

Ctrl+L ClearCtrl+S DownloadCtrl+Shift+C Copy outputS SwapP Pin
💡

Encode URLs and query parameter values for safe transmission. Choose encodeURIComponent to encode individual param values, or encodeURI to encode a full URL while preserving its structure. The Query Params Table lets you edit key=value pairs and rebuild the final encoded URL visually.

📌 Encode query parameter value
Input: user@example.com (as email param value)
Output: user%40example.com (safe for URL query string)

What is URL Encoding?

URL encoding (percent encoding) converts special characters into a % followed by two hex digits. For example, a space becomes %20, & becomes %26, and / becomes %2F. This ensures URLs remain valid across all browsers, servers, and APIs regardless of the special characters they contain.

encodeURIComponent vs encodeURI vs RFC 3986

encodeURIComponent is the safest choice for encoding individual query parameter values — it encodes everything except A-Z a-z 0-9 - _ . ! ~ * ' ( ). encodeURI is designed for full URLs and preserves characters like : / ? # [ ] . RFC 3986 is the strictest standard — also encoding ! ' ( ) * — recommended for OAuth signatures and API authentication headers.

Frequently Asked Questions

How do I encode a URL in JavaScript?

Use encodeURIComponent() for param values: encodeURIComponent("hello world") returns "hello%20world". Use encodeURI() for full URLs. This tool shows the equivalent JS code in the Code Snippets panel.

How do I encode URL parameters?

Each key and value should be encoded separately using encodeURIComponent, then joined as key=value pairs with &. The Query Params Table in this tool does this automatically.

Does encoding change the URL meaning?

No. Encoding makes special characters URL-safe but the decoded meaning stays the same. A server decodes the URL before processing, so the data is received correctly.

How do I encode a URL in Python?

Use urllib.parse.quote(text, safe="") for encodeURIComponent equivalent, or urllib.parse.quote(text) to preserve /. See the Python code snippet in this tool.

What characters need URL encoding?

Spaces, &, =, +, /, ?, #, [, ], @, !, $, ', (, ), *, ,, ; and all non-ASCII Unicode characters must be encoded. Letters, digits, -, _, ., ~ are safe and do not need encoding.