CodeScript

URL Encoder / Decoder

Percent-encode or decode text for use in URLs.

What it does

Encodes special characters in text so it's safe to use inside a URL (percent-encoding), or decodes a percent-encoded string back to its original form.

FAQ

encodeURIComponent (used here) escapes more characters, making it safe for encoding a single query-string value. encodeURI is meant for encoding a full URL and leaves characters like / and : untouched.

Related tools