URL Encoder — URLs may only contain a limited set of characters. Spaces, ampersands, question marks, and non-ASCII characters must be percent-encoded — replaced with %XX sequences. This tool offers two modes: component mode encodes everything reserved (for a single query parameter value), while full-URL mode keeps structural characters like : / ? & = so an entire address stays readable.
Encoding runs locally in your browser. Nothing is uploaded.
Was URL Encoder useful?
What is URL Encoder?
URLs may only contain a limited set of characters. Spaces, ampersands, question marks, and non-ASCII characters must be percent-encoded — replaced with %XX sequences. This tool offers two modes: component mode encodes everything reserved (for a single query parameter value), while full-URL mode keeps structural characters like : / ? & = so an entire address stays readable.
It matches the behavior of encodeURIComponent and encodeURI in JavaScript, so results are identical to what your code produces.
How to use it
-
Pick a mode
Component for a parameter value; full URL for an entire address.
-
Paste your text
The encoded output updates as you type.
-
Copy the result
Use Copy to place the encoded string on your clipboard.
Examples
Query value
Reserved characters are encoded in component mode.
a b&c=d
Result: a%20b%26c%3Dd
Full URL
Structure is preserved; only unsafe characters are encoded.
https://example.com/search?q=café & more
Result: https://example.com/search?q=caf%C3%A9%20&%20more
Frequently asked questions
Related guides
How to Create an XML Sitemap (and Why You Need One)
Learn what an XML sitemap does, which URLs to include or exclude, protocol size limits, and how to generate and submit one to search engines.
How to Encrypt a Message with a Password (in Your Browser)
Encrypt messages with a password in your browser using PBKDF2 key derivation and AES-GCM authenticated encryption—without uploading plaintext.
What Is a URL Slug and Why It Matters for SEO
What a URL slug is, best practices for hyphens and stop words, handling Unicode transliteration, and generating clean slugs in your browser.