Dad’s Words tools

URL Encoder

Encode or decode percent-encoded URLs and query strings.

Plain Text
Encoded URL

Percent-encoded output will appear here (encodeURIComponent).

Paste, upload, or drop a file in the input panel to get started.

encodeURIComponent — not encodeURI

The encoder uses JavaScript's encodeURIComponent, which percent-encodes everything except: A–Z, a–z, 0–9, -, _, ., !, ~, *, ', (, ). This is stricter than encodeURI, which preserves characters like / : @ ? & = # that have meaning in a full URL. Use this tool for query parameter values, not for encoding whole URLs.

InputEncoded output
hello worldhello%20world
name=John Doename%3DJohn%20Doe
https://example.comhttps%3A%2F%2Fexample.com
café & résumécaf%C3%A9%20%26%20r%C3%A9sum%C3%A9

When to encode query parameter values

Any value that contains spaces, ampersands, equals signs, or non-ASCII characters must be percent-encoded before being appended to a URL. Failing to encode these characters causes the server to misparse the query string. The decoder reverses the process — useful for reading a URL someone pasted in encoded form.

Warning: If you paste a full URL with a query string and encode it, the slashes, colons, and question mark in the URL structure will also be encoded — breaking the URL. Encode only the parameter values, not the full URL string.

Frequently Asked Questions

Your files stay on your computer. Dad promised.

Words tools

Search the Words tools