URL Encoder & Decoder
Encode or decode URLs and query strings instantly. Free, no signup.
What is URL encoding?
URL encoding (also called percent-encoding) replaces unsafe or special characters in a URL with a percent sign followed by their hexadecimal ASCII value. For example, a space becomes %20 and an ampersand becomes %26. This ensures URLs are transmitted correctly across the internet.
Common URL-encoded characters
| Character | Encoded | Description |
|---|---|---|
| (space) | %20 | Space character |
| & | %26 | Ampersand |
| = | %3D | Equals sign |
| ? | %3F | Question mark |
| # | %23 | Hash/pound sign |
| / | %2F | Forward slash |
| @ | %40 | At sign |
Frequently Asked Questions
When do I need to URL-encode?
URL-encode whenever you pass special characters in query parameters, form data, or API requests. Without encoding, characters like &, =, and ? are interpreted as URL delimiters instead of literal values.
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a full URL, preserving characters like :, /, ?, and #.encodeURIComponent encodes everything including those characters, making it suitable for encoding individual query parameter values. This tool uses encodeURIComponent for the most thorough encoding.
Related free tools
Browse all toolsFormat, validate, and beautify JSON instantly. Find syntax errors with line numbers. JSON linter.
Encode text to Base64 or decode Base64 strings back to plain text. Supports unicode and images.
Convert between HEX, RGB, HSL, and CMYK color codes with a live color preview.
Generate random UUIDs (v4 and v7). Bulk generate up to 50 at once with custom formatting.