URL Encode & Decode
Percent-encode any string for safe use in URLs, or decode an encoded URL back to its original form.
Input0 chars, 0 lines
Uses encodeURIComponent / decodeURIComponent — safe for path or query strings.
Result0 chars, 0 lines
Options
When you need URL encoding
-
Building a query string by hand and needing to escape
special characters like
&,=, or spaces. - Encoding non-ASCII characters (accents, emoji) for safe transmission.
- Inspecting an encoded link from an email or analytics tracker.
encodeURIComponent vs form encoding
Standard URL encoding uses %20 for spaces, the
output of JavaScript's encodeURIComponent. Form
submissions (application/x-www-form-urlencoded)
use + instead. Toggle the option above to switch
between them.