URL Encoder / Decoder

Encode and decode URL strings.

❓ Frequently Asked Questions

URL encoding (percent encoding) converts special characters to %XX format so URLs can be safely transmitted. URLs can only contain certain characters (A-Z, 0-9, -, ., _, ~). Special chars like spaces, #, &, ? must be encoded. Example: space becomes %20, # becomes %23. Without encoding, URLs break or misinterpret query parameters.
URL encoding converts characters to %HH format where HH is hexadecimal ASCII code. Process: 1) Get ASCII code (space = 32), 2) Convert to hex (32 = 20), 3) Add percent (%20). Example: 'hello world' → 'hello%20world'. Reserved chars (&=?#) get encoded to prevent URL parsing issues.
URL encoding: For URLs/query strings, uses %XX format (space=%20, @=%40). HTML encoding: For HTML content, uses &entity; format (< = &lt;, space = &nbsp;). Use URL encoding for links/APIs; HTML encoding for displaying text in HTML. Don't confuse them - they serve different purposes!
Always encode: Space, <, >, #, %, {, }, |, \, ^, ~, [, ], `. Reserved chars (encode in query strings): :, /, ?, #, &, =, +, $, ,, @. Safe chars (no encoding): A-Z, a-z, 0-9, -, ., _, ~. Modern browsers auto-encode URLs, but always encode manually for APIs and query parameters.
Yes! URL decoding reverses encoding: %20 → space, %40 → @, etc. Just paste URL-encoded string and click Decode URL. Decoding is useful for: 1) Reading query parameters, 2) Debugging API calls, 3) Understanding redirects. Note: Some chars may decode differently on different systems (UTF-8 vs Latin-1).