URL Encode

Percent-encode query values (encodeURIComponent) or full URLs (encodeURI).

Raw URL or Parameter

Percent-Encoded Output

https%3A%2F%2Fexample.com%2Fsearch%3Fq%3Dpdf%20merge%20%26%20split%26tag%3D2026

How to Use URL Encode

Convert spaces, ampersands, non-ASCII text, and query parameters into valid percent-encoded strings for HTTP requests.

Step 1

Paste a query parameter value or complete URL.

Step 2

Choose Component Mode (encodeURIComponent, default) or Full URL Mode (encodeURI).

Step 3

Click "Copy Encoded URL".

What URL Encode Includes

encodeURIComponent vs encodeURI switch
UTF-8 percent-encoding
Live instant output

Frequently Asked Questions

Frequently Asked Questions

Find quick answers about functionality, security, and usage limits.

Use encodeURI when keeping https:// and / path slashes intact; use encodeURIComponent when encoding a single query parameter value that contains &, ?, or =.

More Developer & Format Tools

View all