Encode text to Base64, with correct Unicode handling.
Open toolURL Encoder
Percent-encode URLs and query strings, component or full-URI mode.
Result will appear hereWhat is a url encoder?
This tool percent-encodes (URL-encodes) text so it can be safely used inside a URL. It supports both encodeURIComponent-style encoding (for individual query values) and encodeURI-style encoding (for full URLs, which leaves structural characters like :/?# untouched).
How to use this tool
- 1Pick Component (for a query parameter value) or Full URI (for an entire URL).
- 2Type or paste your text - the encoded result appears instantly.
- 3Use Swap to flip to decode mode using the current output as the new input.
- 4Copy the result.
Common use cases
Frequently asked questions
What's the difference between Component and Full URI mode?
Component mode (encodeURIComponent) escapes every reserved character, including / and :, which is correct when encoding a single value that will be placed inside a URL. Full URI mode (encodeURI) leaves URL-structure characters like :/?# alone, since you're encoding an entire URL, not a piece of one.
How are spaces encoded?
As %20, matching standard URL encoding - not the older + convention used specifically in HTML form submissions.
Should I always use Component mode for query parameters?
Yes - if you're inserting a single value into a query string (like a search term), Component mode is almost always correct, since it won't accidentally leave characters unescaped that would break the URL structure.
Is my data sent anywhere?
No - encoding happens entirely in your browser using built-in JavaScript functions.
{
"runs_in_browser": true,
"data_sent_to_server": false,
"signup_required": false,
"price": "free",
"category": "Encoding"
}