— URL Encode Text

URL Encoder - Percent-Encode Text for URLs

Quick Tips

  • This tool runs entirely in your browser - your data stays private.
  • Press Ctrl+V (Cmd+V on Mac) to quickly paste text.
  • Use the Copy button to save your result to clipboard.
  • Bookmark this page for quick access!

Convert text to URL-safe percent-encoded format.

Examples

Input
Hello World
Output
Hello%20World
Input
name=John Doe&city=New York
Output
name%3DJohn%20Doe%26city%3DNew%20York
Input
price: $50 (50% off!)
Output
price%3A%20%2450%20(50%25%20off!)
Input
cafe resume
Output
caf%C3%A9%20r%C3%A9sum%C3%A9

Frequently Asked Questions

Both represent spaces in URLs. %20 is the standard percent-encoding, while + is used specifically in application/x-www-form-urlencoded format (HTML forms). Modern practice prefers %20 for broader compatibility.

Encode only the data values, not the URL structure. The protocol (https://), domain, path separators (/), and parameter separators (&, =, ?) should remain unencoded. Only encode the actual parameter values.

RFC 3986 defines "unreserved characters" that are safe in URLs: A-Z, a-z, 0-9, hyphen (-), underscore (_), period (.), and tilde (~). These do not require encoding.

Double encoding happens when you encode already-encoded text, turning %20 into %2520. This breaks URLs because servers decode only once. Always encode raw data, not already-encoded strings.

Encode the entire URL value, including its special characters. For example, https://example.com/?q=test becomes https%3A%2F%2Fexample.com%2F%3Fq%3Dtest when used as a parameter value.

Yes, all encoding happens locally in your browser using JavaScript. Your text is never sent to any server, ensuring complete privacy.

Cookie Preferences

We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.

Cookie Preferences

Manage your cookie settings

Essential Cookies
Always Active

These cookies are necessary for the website to function and cannot be switched off. They are usually set in response to actions made by you such as setting your privacy preferences or logging in.

Functional Cookies

These cookies enable enhanced functionality and personalization, such as remembering your preferences, theme settings, and form data.

Analytics Cookies

These cookies allow us to count visits and traffic sources so we can measure and improve site performance. All data is aggregated and anonymous.

Google Analytics _ga, _gid

Learn more about our Cookie Policy