>_toolkitbox

~/tools / URL Encoder / Decoder

URL Encoder / Decoder

Percent-encode or decode strings for use in URLs. Handy when a query parameter needs to include spaces, non-ASCII text, or special characters.

URLs can't safely contain spaces, non-ASCII characters, or certain symbols as-is — they need to be converted to a %XX percent-encoded form. Useful for building query parameters or reading an encoded URL you found in a log.

# Use Cases

  • Building a URL whose query parameters contain non-ASCII text or symbols
  • Reading back the original value from a percent-encoded URL found in access logs
  • Safely encoding a form value or redirect URL before embedding it

# Usage

  1. Paste the string or URL you want to convert into the input box.
  2. Click "Encode" to make it URL-safe, or "Decode" to convert a %-encoded string back to plain text.
  3. The result can be copied straight into a URL.

# FAQ

Why is URL encoding necessary?
Characters that aren't allowed in URLs (spaces, non-ASCII text, certain symbols) need to be converted into a safe %XX form.
What's the difference between encodeURI and encodeURIComponent?
encodeURIComponent is the one you typically want for encoding a single part of a URL, like a query parameter value. This tool behaves like encodeURIComponent.

# Related

# Learn more on our sister sites