URL Encoder / Decoder

Output will appear here

Output will appear here

Empty

URL Encoder / Decoder

Encode special characters in URLs using percent-encoding, or decode percent-encoded URLs back to readable text. Handles all reserved and unsafe characters per RFC 3986.

Use Cases

  • Encode query parameters before appending to URLs
  • Decode percent-encoded URLs for readability
  • Prepare strings for use in URL path segments
  • Encode special characters in form data submissions
  • Debug URL encoding issues in web applications

Frequently Asked Questions

What is URL encoding?

URL encoding (percent-encoding) replaces unsafe characters with a percent sign followed by two hex digits. For example, a space becomes %20 and an ampersand becomes %26.

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URI, preserving characters like : / ? # that have meaning in URLs. encodeURIComponent encodes everything except unreserved characters, suitable for encoding query parameter values.