URL Encoder
Percent-encode text for URLs and query strings instantly.
The URL Encoder percent-encodes any text so it can travel safely inside a URL or query string. Characters like spaces, &, =, ? and # all have structural meaning in URLs; encoding turns them into safe %XX sequences, preventing broken links and malformed parameters.
The encoding is Unicode-safe: emoji, accented characters and non-Latin scripts are encoded as UTF-8 percent sequences, which is exactly what servers expect. Type a search phrase, a value with spaces and symbols, or a full parameter value, and the encoded form appears instantly.
Percent-encoding runs locally in your browser. Decoding works in reverse on the URL Decoder page — the pair covers every 'why is my link breaking' debugging session.
How to use the URL Encoder
- Type or paste the text you want to put into a URL.
- Read the percent-encoded result instantly.
- Copy the encoded value into your query string or link.
- Notice how spaces become %20 and & becomes %26.
- Use the decoder page to reverse the process when needed.
Frequently asked questions
Why do I need to encode URLs at all?
URLs reserve certain characters as syntax: / separates paths, ? starts the query, & separates parameters, # starts the fragment. A value containing any of these must be encoded or the URL will be parsed incorrectly — breaking your links or parameters.
What does %20 mean?
It is the percent-encoding of a space (hex 20). Encoding converts each special byte to % followed by its two hex digits, so 'hello world' becomes 'hello%20world'.
Is this the same as HTML encoding?
No. URL encoding uses %XX sequences for URL contexts; HTML encoding uses entities like & for markup. Using the wrong one produces double-encoded or broken output — this tool handles the URL flavor.
Related tools
View all developer tools →JSON Formatter & Validator
Format, minify and validate JSON instantly with clear error messages that point at the exact problem.
Dev ToolsJSON Validator
Check if your JSON is valid and find syntax errors with exact line and column.
Dev ToolsJSON Minifier
Compress JSON to its smallest valid form for storage and transport.
Dev ToolsJSON to CSV
Convert a JSON array of objects into a clean CSV file in one click.
Dev ToolsCSV to JSON
Convert CSV (from Excel or Google Sheets) into a JSON array of objects.
Dev ToolsBase64 Encoder
Encode text or files to Base64 — standard or URL-safe — in your browser.