URL Encoder
Percent-encode text for safe use in URLs and query strings.
URL Encoder
Developer tool running locally in browser
What does URL Encoder do?
Encode text for use in a URL, with a choice between encoding a full URL and encoding a single component. Getting that distinction right is the difference between a working link and a broken one.
How to Use URL Encoder
- 1Enter your textA value, a query string or a whole URL.
- 2Pick the modeComponent for a single value, full URL to keep slashes.
- 3Copy the encoded textReady to paste into a link.
Key Features
- Component mode for query values, and full-URL mode that keeps structure intact
- UTF-8 encoding so any language works
- Optional space-as-plus for form-encoded data
- Highlights which characters were changed
- Batch mode for a list of values
Frequently Asked Questions
What is the difference between the two modes?
Component mode encodes everything unsafe including / ? & = #, which is right for a single query value. Full-URL mode leaves those structural characters alone so the URL still works.
Why does a space become %20?
Because spaces are not allowed in a URL. %20 is the standard percent-encoded form. Form submissions historically use + instead, which is why both options exist.
How are non-English characters encoded?
They are converted to UTF-8 bytes first, then each byte is percent-encoded. The character é becomes %C3%A9 — two bytes, two escapes.
When must I encode an ampersand?
Whenever it is part of a value rather than a separator. A search for "Marks & Spencer" must send %26, or everything after the ampersand is read as a new parameter.
Input is processed in your browser and never transmitted. That said, treat any web page as untrusted for live production secrets — rotate anything you paste anywhere.
Related Tools
URL Decoder
Decode percent-encoded URLs back into readable text.
HTML Encoder
Escape HTML special characters to display code safely.
Base64 Encoder
Encode text to Base64, with UTF-8 and URL-safe support.
URL Slug Generator
Turn any title into a clean, SEO-friendly URL slug.
