← Back to Tools

URL Encoder/Decoder

Encode and decode URLs for safe web transmission

0 characters

Encoding Options

Common Examples

Space Character
Original: hello world
Encoded: hello%20world
Special Characters
Original: user@email.com
Encoded: user%40email.com
Query Parameters
Original: ?name=John&age=30
Encoded: %3Fname%3DJohn%26age%3D30
URL Path
Original: /hello/world
Encoded: %2Fhello%2Fworld

About URL Encoding:

  • URL Encoding converts special characters into a format that can be safely transmitted over the internet
  • encodeURIComponent encodes all characters except: A-Z a-z 0-9 - _ . ! ~ * ' ( )
  • encodeURI preserves URL structure characters like :/?#[]@
  • Base64 encoding is useful for encoding binary data or complex strings
  • • Spaces are encoded as %20 (not + sign, which is a common misconception)
  • • URL encoding is essential for passing data in query strings and form submissions