URL Encoder/Decoder

Encode or decode URL-safe text.

How to Use

  1. Type or paste a URL or text string.
  2. Click Encode URL to percent-encode special characters, or Decode URL to reverse it.
  3. Click Copy Result to copy the output.

Features

  • Encodes special characters for safe use in URLs and query strings
  • Decodes percent-encoded text back to readable form
  • Uses the browser's built-in, standards-compliant encodeURIComponent/decodeURIComponent

Frequently Asked Questions

Why do spaces become %20 or +?

URLs can't contain literal spaces, so they're percent-encoded as %20 (this tool's method) — some contexts like form submissions use + instead, but %20 is the more universally correct encoding.

When would I need to URL-encode text?

Common cases include passing values in query strings, building API request URLs, or including special characters like &, =, or spaces in a link.