%

URL Encoder & Decoder

Encode and decode URLs and query strings online

About URL Encoder & Decoder

Encode or decode URLs and query strings instantly. URL encoding (percent encoding) converts special characters to their %XX equivalents for safe transmission in URLs. Essential for building API requests, debugging query parameters, and handling special characters in web development.

Use Cases

  • Encoding query parameters for API requests
  • Decoding URL-encoded strings from server logs
  • Fixing broken URLs with special characters
  • Building deep links with encoded parameters

Frequently Asked Questions

What is URL encoding?

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

When do I need URL encoding?

Whenever you pass special characters in URLs — query parameters, form data, or path segments that contain spaces, ampersands, or non-ASCII characters.

What's the difference between encodeURI and encodeURIComponent?

encodeURIComponent encodes everything except A-Z, 0-9, and - _ . ~ which is what you want for query parameter values. This tool uses encodeURIComponent.

More Developer Tools