URL Encode / Decode
Percent-encode text so it's safe to use inside a URL, or decode a percent-encoded string back to plain text. Runs entirely in your browser — nothing is uploaded.
How to use this URL encoder
Paste any text into the input box and click Encode to percent-encode reserved and non-ASCII characters using encodeURIComponent. To reverse the process, paste a percent-encoded string and click Decode. Malformed sequences (like a stray % not followed by two hex digits) are caught and reported instead of crashing the page.
When you need URL encoding
URLs can only safely contain a limited set of ASCII characters. Spaces, ampersands, question marks, slashes and non-Latin text must be percent-encoded before they're placed in a query string, path segment, or form submission — otherwise they can break the URL structure or be misinterpreted by servers. This is essential when building links that carry search terms, filenames, or user-generated content.