ToolFactory

URL Encoder

URL Encoder: free, instant and private. Encode individual values, not a whole URL — slashes and question marks are separators and must stay literal.

How the URL Encoder works

The URL Encoder takes Input text, Mode and returns the answer instantly — no button to hunt for, no page reload. Encode individual values, not a whole URL — slashes and question marks are separators and must stay literal. Decoding is the exact inverse, so a query string can be read back in full.

Enter your own numbers to replace the example values; the result panel updates as you type. Everything runs in this single page, so nothing you enter leaves your device.

Formula used

encodeURIComponent: everything except A–Z a–z 0–9 - _ . ! ~ * ' ( ) becomes %XX

SymbolMeaning
inputthe text or URL component to encode

Encode individual values, not a whole URL — slashes and question marks are separators and must stay literal. Decoding is the exact inverse, so a query string can be read back in full.

Inputs used: Input text, Mode.

Worked example

Take the default example — input text of free tools & utilities?q=hello world, mode set to Encode:

Frequently asked questions

What formula does the URL Encoder use?
It uses **encodeURIComponent: everything except A–Z a–z 0–9 - _ . ! ~ * ' ( ) becomes %XX**, where input is the the text or URL component to encode.
Is the URL Encoder free?
Yes. There is no signup, no usage limit and no watermark — the converter runs entirely in your browser.
How do I read the result?
Encode individual values, not a whole URL — slashes and question marks are separators and must stay literal. Decoding is the exact inverse, so a query string can be read back in full.
Does the URL Encoder store or send my data?
No. Every calculation happens locally in the page, so the numbers you type are never uploaded or logged.
Does it work on a phone and offline?
Yes — the page is a single lightweight file that adapts to any screen size. Once it has loaded it keeps working without a network connection.