Encoding utility
URL Encoder
Encode text for safe use in URL components.
● This tool runs entirely in your browser. Your input is never uploaded to our servers.
Output
Your result will appear here…
How to use URL Encoder
- Enter a query value or path component.
- Select Convert.
- Insert the result into the intended component without encoding it again.
Example
Input / settings:
Tom & Jerry
Output:
Tom%20%26%20Jerry
When to use
- Encode a search query containing &.
- Represent a space in a path component.
- Prepare a Unicode query parameter value.
Overview
Percent encoding protects a value used inside a URL component. This tool uses JavaScript's encodeURIComponent, rather than encoding or normalizing an entire URL.
Common mistakes
- Encoding a complete URL also escapes its separators.
- Double encoding changes %20 into %2520.
- This function uses %20 for spaces, not form encoding's +.
Practical tips
- Encode values individually; use URLSearchParams when constructing query strings in code.
- Some punctuation, including apostrophes, is left unchanged by encodeURIComponent.
Privacy and security
This tool runs entirely in your browser. Your input is never uploaded to our servers. Conversion stays local. Encoding a value is not sanitization, authorization, or encryption.
Frequently asked questions
Should I paste the whole URL?
Usually no. This tool is intended for individual components, such as a query value.
Why is a space %20 instead of +?
It uses component encoding, not application/x-www-form-urlencoded serialization.
Does encoding make a URL safe to visit?
No. It changes representation, not the destination's trustworthiness.