How to use it
- Type or paste the text.
- Leave Encoding on URL and Direction on Encode (preselected here).
- Pick the Scope, and tick Use + for spaces if you need form encoding.
- Copy the result or download encoded.txt.
Worked example
café & crème? encodes to caf%C3%A9%20%26%20cr%C3%A8me%3F with Component scope. With Full URL scope, https://example.com/a b?q=café&x=1 becomes https://example.com/a%20b?q=caf%C3%A9&x=1.
Formats and limits
| Input | Text |
|---|---|
| Output | Percent-encoded text |
| Engine | TextEncoder/TextDecoder with strict validation |
Limitations
- Full URL scope does not encode & or = inside a value; encode each value with Component scope first.
- Text with a broken emoji (a lone surrogate) cannot be encoded as UTF-8 and is reported.
- Characters such as - _ . ! ~ * ' ( ) are never encoded, as in JavaScript's encodeURIComponent.
Questions
Component or Full URL?
Component, the default, encodes every reserved character, including / ? & and =, for one query value or path segment. Full URL leaves : / ? # & = in place so a complete address keeps working.
Should a space be %20 or +?
%20 works everywhere in a URL. Tick Use + for spaces for HTML form encoding (application/x-www-form-urlencoded), where query values often use +.
How are accents and emoji encoded?
As their UTF-8 bytes, each written as %XX. é is two bytes and becomes %C3%A9.
Is my text uploaded?
No. The text is processed in your browser and nothing is uploaded.
Privacy
Runs on your device. Files and text are processed in this browser tab and are not uploaded.
This page opens the Encoding toolkit ready for this task. See the privacy policy for how toolsdocks handles data.