How it works
URL encoding (percent-encoding) replaces unsafe characters with a
%
followed by two hex digits.
- encodeURIComponent - Encodes everything except
A-Z a-z 0-9 - _ . ! ~ * ' ( ). Use for query parameters. - encodeURI - Preserves URL structure characters like
: / ? # & =. Use for full URLs.
Decode reverses the encoding, converting percent-encoded characters back to their original form.
Related developer tools
Continue with nearby tasks in the developer tools hub.
Developer
Backslash Escape/Unescape
Escape or unescape backslash sequences in text
Open tool
Developer
Base64 Encode/Decode
Encode text to Base64 or decode Base64 strings
Open tool
Developer
Basic Auth Generator
Generate HTTP Basic Authorization headers
Open tool
Developer
JSON Format/Validate
Format, validate, and beautify JSON with syntax highlighting
Open tool
Developer
Unix Time Converter
Convert timestamps to human-readable dates and vice versa
Open tool
Developer
CSV to JSON
Convert CSV data to JSON array format
Open tool