URL Encoder
Convert text into a URL-safe form by percent-encoding spaces, symbols and non-English characters.
Loading tool…
Need help with this tool or found a problem? WhatsApp support Email
What does the URL Encoder do?
URLs can only contain certain characters. Others — spaces, &, ?, #, Urdu letters, emoji — must be percent-encoded as UTF-8 bytes, so “café” becomes caf%C3%A9. Choose the mode that matches your use: encodeURIComponent for query values and path segments (encodes &, = and /), encodeURI for a complete URL (keeps :, /, ?, # and &), or form encoding where spaces become “+”.
How to use the URL Encoder
- Paste the text or URL.
- Choose the encoding mode.
- Copy the encoded result.
Examples
Query value
“chai & samosa” → chai%20%26%20samosa (component mode).
Full URL
https://example.com/search?q=lahore food → …?q=lahore%20food (URI mode).
Common use cases
- Building query strings and API requests
- Sharing links with special characters
- Debugging redirect and tracking URLs
Features and benefits
- Private by design — your data is processed on your device and never uploaded.
- Free with no account, no watermark and no usage limits.
- Works on phones, tablets and desktops in any modern browser.
Limitations to know
- Do not encode a full URL in component mode — it will encode the slashes and colon too.
Frequently asked questions
encodeURI or encodeURIComponent?
Use encodeURIComponent for individual values; use encodeURI only for a complete URL.
Why do spaces become %20 or +?
%20 is standard percent-encoding; + is used for spaces in HTML form data.
Does it support Urdu?
Yes, characters are encoded as UTF-8.
Related tools
All developer toolsURL Decoder
Decode percent-encoded URLs and inspect query parameters.
Base64 Encoder
Encode text or files to Base64 with full UTF-8 support.
HTML Entity Encoder
Escape special characters as HTML entities.
UTM Link Builder
Build campaign URLs with UTM parameters for analytics.
Social Media ToolsQR Code Generator
Create QR codes for URLs, text, Wi-Fi, email, phone and contacts.
Utility ToolsURL Shortening Guide & Link Cleaner
Shorten links honestly: strip tracking parameters and learn safe shortener use.
Utility Tools