URL Encoder
Percent‑encode text for URLs
Start
name%3DJohn%20Doe%20%26%20city%3DNew%20York
Description
The URL Encoder converts arbitrary text into percent‑encoded form so it can safely travel in query strings and paths.
Key features
- Accurate UTF‑8 percent‑encoding using
encodeURIComponent - Two‑panel UI with Copy, Clear, and Sample
- Local persistence for inputs
Common use cases
- Encoding user‑entered values for query strings
- Testing backend URL decoding behavior
Privacy & security: runs locally in your browser; nothing is uploaded.
How to Use
- Paste the text you need to encode into the left panel.
- Review the percent‑encoded output on the right.
- Copy the output and use it in your URLs.
Tips
- Use URL Decoder to reverse the process.
- Spaces become
%20; plus signs are literal+only if produced elsewhere.
Example
Example: Text with spaces
Input:
name=John Doe & city=New York
Output:
name%3DJohn%20Doe%20%26%20city%3DNew%20York
FAQ
Local only?
Yes, encoding uses native browser APIs on your device.
Plus signs vs spaces?
This tool outputs %20 for spaces. Some legacy systems treat + as a space; confirm expectations.