Back to Utilities
CONVERTER
URL Encoder & Decoder
Encode URLs for safe transmission or decode percent-encoded strings. Supports encodeURIComponent and encodeURI.
Accepts: .txt
encodeURIComponent — encodes all special chars including :/?#[]@!$&'()*+,;= — use for query values
Output will appear here…
When to encode URLs
1
Use encodeURIComponent
Encode individual query parameter values, path segments or any part of a URL that might contain special characters like &, =, +, #.
2
Use encodeURI
Encode a complete URL while preserving its structure. Use when you have a full URL and only need to escape reserved characters.
3
API & form data
Query strings sent in API calls or HTML forms must be URL-encoded so special characters don't break parsing.
Characters encoded
SpaceBecomes %20 (or + in form data)
& and =Encoded in component mode — critical for query params
# and ?Encoded in component mode, preserved in URI mode
Non-ASCIIUnicode chars are UTF-8 encoded then percent-escaped
