Skip to main content
TF
%

URL Encoder / Decoder

Encode or decode URL components and query strings

What is URL Encoder / Decoder?

URL Encoder / Decoder converts special characters in URLs to their percent-encoded equivalents and back. URLs can only contain certain ASCII characters — spaces, symbols, and non-ASCII characters must be encoded (e.g., space becomes %20). This tool is essential for building query strings, debugging API endpoints, and fixing broken URLs.

How to Use This Tool

  1. Paste a URL or text containing special characters
  2. Click Encode to convert special characters to percent-encoded format
  3. Or paste an encoded URL and click Decode to reveal the original text
  4. Copy the result for use in your application or browser

Common Use Cases

  • Encoding query parameters with special characters for API calls
  • Decoding percent-encoded URLs to read the original text
  • Debugging broken URLs that contain spaces or unicode characters
  • Building safe redirect URLs with encoded parameters

Frequently Asked Questions

What characters need URL encoding?

Spaces, &, =, ?, #, /, and most non-ASCII characters need encoding. Letters (a-z, A-Z), digits (0-9), and - _ . ~ are safe without encoding.

What is the difference between encodeURI and encodeURIComponent?

encodeURI encodes a full URL preserving :, /, ?, and #. encodeURIComponent encodes everything including those characters, suitable for query parameter values.