How to URL-encode text
Special characters in a URL must be percent-encoded. Pick the right mode so query values, paths and full links are encoded correctly.
Step by step
- Paste your text. Type or paste the text or URL.
- Pick a mode. Component, Full URL or Form.
- Copy the result. Use the Copy button.
Tips for better results
- Use Component for a single query value.
- Use Full URL to keep :, /, ? and & as they are.
- Use Form for application/x-www-form-urlencoded data, where a space becomes +.
Limits to know
- Formats: Plain text
- Size: Limited by browser memory
- Notes: Runs fully in your browser. Very large inputs (several MB) can slow the page.
At a glance
| Tool | URL Encoder |
|---|---|
| Category | Developer Tools |
| Works with | Plain text |
| Size limit | Limited by browser memory |
| Where it runs | In your browser tab; your input is not uploaded |
| Cost | Free, no sign-up |
Frequently asked questions
What is percent encoding?
Unsafe characters are replaced by % and two hex digits, for example a space becomes %20.
Which mode should I choose?
Component for values inside a URL, Full URL for an entire address.
If something does not work
- The result is empty. Check that you typed or pasted text into the input box and that the options are not hiding everything.
- The page feels slow. Very large text slows any browser tool. Work on smaller parts.
- Characters look wrong. Make sure the text is saved as UTF-8 in the program you copied it from.
- Copy does not work. Some browsers block automatic copying; select the result and copy it yourself.
Still stuck? Use Report a Problem and tell us the tool, your browser and what happened, or read the Help Center.
Related tools and guides
- JSON Formatter: Format, indent, sort and minify JSON. Invalid JSON is reported with the line and column of the problem. Read the guide
- JSON Validator: Check whether your JSON is valid. If it is not, see the exact line and column and a plain-English reason. Read the guide
- HTML Formatter: Indent and tidy HTML. Inline tags stay on the line, and embedded CSS and JavaScript are formatted too. Read the guide
More tools like this are in Developer Tools, or browse all tools.