URL Encoder

Convert text into a URL-safe form by percent-encoding spaces, symbols and non-English characters.

FreeNo sign-upRuns in your browserMobile-friendly

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

  1. Paste the text or URL.
  2. Choose the encoding mode.
  3. 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.

Embed this tool on your website

Add the free URL Encoder to your blog or website. Paste the code into your page’s HTML; the tool runs in your visitors’ browsers and stays up to date automatically. Please keep the credit line below the tool.

Free to use on any website. The tool runs inside an iframe served from viptools.pk; nothing your visitors type is sent to your site or ours. Preview the embedded version.