URL Encoder

Percent-encode text and URL components for safe use in links, query strings, and HTTP requests. Choose full URL encoding or strict component encoding.



Output will appear here.

Frequently Asked Questions

When should I use encodeURI?

Use encodeURI for full URLs. It encodes spaces and special characters but keeps : / ? & = intact.

When should I use encodeURIComponent?

Use it for individual query values or path segments where every special character must be encoded.

Does this handle Unicode?

Yes. Non-ASCII characters are percent-encoded as UTF-8 sequences.

Need to decode instead?

Use the URL Decoder to restore encoded strings.

Is this tool free and does it work on mobile?

Yes on both counts. The URL Encoder on draft21 is completely free with no sign-up required and works on all devices.