Encode and decode URLs
URL Encoder encodes and decodes text using JavaScript's encodeURIComponent and decodeURIComponent, entirely in your browser — nothing is uploaded to a server. It's built for encoding a single value (like a query parameter), not a whole URL: running a full URL like https://example.com/path?a=1&b=2 through it will over-encode structural characters such as /, :, ?, &, and =, breaking it as a usable link. A working 'Decode' button is included alongside 'Encode'.
What is URL encoding?
It converts characters that aren't safe in a URL (spaces, &, =, and others) into a %XX percent-encoded format.
Can I encode a whole URL with this tool?
Not safely — encoding a full URL will also encode its structural characters (like / and :), breaking it. Encode individual values (e.g. a query parameter) instead, then build the full URL around them.
Can I decode with this tool?
Yes — there's a 'Decode' button next to 'Encode' that reverses percent-encoding back to the original text.
Is my data uploaded to a server?
No, encoding and decoding happen entirely in your browser.