URL
Encoder
Encode or decode URL strings. Choose between encodeURIComponent (encodes everything) and encodeURI (preserves URL structure).
What is URL Encoding?
URLs are restricted to a limited set of characters. Characters outside the ASCII range — such as Korean/Japanese text, special characters, and spaces — must be converted to percent-encoded format (%XX) to be safely included in a URL.
JavaScript provides two encoding functions. encodeURIComponent encodes nearly all special characters including URL structure characters (colon, slash, question mark, etc.) and is suitable for query parameter values. encodeURI preserves the overall URL structure.
This tool supports three modes: encodeURIComponent, encodeURI, and decode. It is useful for building API query parameters, debugging URL issues, and handling non-ASCII characters in URLs.
- ▸Include Korean, Japanese, or other non-ASCII characters in URL query parameters
- ▸Debug URL parameter encoding errors in API requests
- ▸Handle special characters in email links and share URLs
- ▸Decode percent-encoded URLs into human-readable form
- ▸Handle nested URL encoding for OAuth redirect_uri parameters