Free URL Encoder
Make any text URL-safe in one click. This free encoder percent-encodes spaces, unicode, and reserved characters — with a choice between full component encoding and gentler full-URL mode that preserves :// structure.
Encoded output
How to Use the URL Encode
- Paste your text or URL into the input box.
- Choose component mode (encodes everything) or full URL mode.
- Click Encode — the safe string appears instantly.
- Copy or download the result.
Features
Two modes cover both jobs: component mode uses encodeURIComponent for query values and path segments (encoding / ? & = too), while full-URL mode uses encodeURI to preserve the URL’s structure and only encode illegal characters. UTF-8 text encodes to correct multi-byte sequences, and batch mode processes one URL per line.
Benefits & Use Cases
Developers build query strings with user input safely; marketers encode campaign URLs containing spaces and special characters; anyone generating share links or redirect URLs avoids broken links. Local encoding keeps internal URLs private.
Tips
Encode values, not whole URLs, when building query strings — encoding the ? and & breaks the structure. That is exactly what the two modes are for: component mode for values, full-URL mode for complete addresses.
Frequently Asked Questions
When should I URL-encode text?
Whenever text goes inside a URL: query parameter values, path segments with spaces or unicode, and redirect targets. Encoding guarantees the URL parses as intended.
What is the difference between encodeURI and encodeURIComponent?
encodeURI preserves URL structure characters (: / ? # &) and encodes the rest — for whole URLs. encodeURIComponent encodes those too — for individual values placed inside a URL. This tool offers both.
Why do spaces become %20 and not +?
This tool uses %20, the universally correct form. The + for space convention only applies to form-encoded query data; %20 works everywhere.
Do I need to encode non-English characters?
Yes — URLs are ASCII-only by spec. UTF-8 characters like é or 日 encode to multi-byte % sequences, which browsers and servers decode back correctly.
Is my input uploaded anywhere?
No. Encoding runs entirely in your browser — your text never leaves your device.
Related Tools
URL Decode
Decode percent-encoded URLs instantly with NToolHub’s free tool. Handles UTF-8, plus-as-space, batch lines — private in-browser.
Open tool →Base64 Encode
Encode any text to Base64 instantly with NToolHub’s free encoder. Proper UTF-8 handling, URL-safe option, line-wrap control — private and fast.
Open tool →.htaccess Generator
Build Apache .htaccess rules visually with NToolHub’s free generator. HTTPS, www, redirects, hotlink protection — copy-ready server config.
Open tool →Meta Tag Generator
Generate SEO and social meta tags with NToolHub’s free tool. Title, description, Open Graph, Twitter cards — copy-ready HTML head code.
Open tool →