OnlineAITool
Developer Tools

URL Encoder and Decoder

Percent-encode text for URLs, or decode an encoded URL back to readable text.

Updates as you type
Nothing is sent anywhere

How to use this tool

  1. Paste or type your text into the box above.
  2. The result updates as you change the input — there is nothing to submit and nothing to wait for.
  3. Read the figures in the result panel, or copy the converted text.
  4. Use Copy or Download if you need the output elsewhere. Nothing was uploaded at any point.

Two modes matter. Component encoding escapes everything including / ? & = #, which is right for a value going into a query string. Full URL encoding preserves those structural characters, which is right when encoding a whole address.

URL Encoder and Decoder — the specification

Component modeencodeURIComponent — escapes / ? & = # too
Full URL modeencodeURI — preserves URL structure
DirectionEncode or decode
SpacesBecome %20

How it works

This tool runs entirely in your browser. There is no server involved, which means nothing you type or upload is transmitted, stored, or logged — and there are no usage limits, because there is nothing for us to ration.

You can confirm it yourself: open your browser's developer tools, select the Network tab, and use the tool. No request is made.

A worked example

Run against this page’s own code, with the real input and the real output reproduced below.

What went in

https://onlineaitool.com/image/compress-to-20kb/?ref=exam form&q=ssc cgl

What came back

Length96NoteComponent mode escapes / ? & = # too

Everything above happened in the page as the text was typed. Nothing was sent to a server, which is why it works offline once the page has loaded and why there is no limit on how often you use it.

Who needs URL Encoder and Decoder

Building query strings safely, debugging tracking links, and decoding a URL someone has sent you as an unreadable string of percent codes.

URL Encoder and Decoder — frequently asked questions

Which mode should I use?

Component mode for a single value going into a parameter — a search term or a redirect target. Full URL mode when encoding an entire address, since it leaves the structural characters intact.

Why did my URL break?

Usually a value containing & or = was inserted into a query string without component encoding, so it was read as a parameter separator. Encoding the value first fixes it.

Is it %20 or + for a space?

%20 is correct everywhere. The + convention applies only inside form-encoded query strings and is not valid in a path.

Does this work offline?

Yes. Once the page has loaded you can disconnect from the internet and it keeps working, because all the processing happens in your browser. That is also the simplest way to confirm nothing is being sent anywhere.

Is there a limit on how much I can paste in?

Nothing we impose. The practical limit is your device’s memory, since the work happens locally. Very large inputs get slower rather than being refused.

Can I use this on a phone?

Yes. The layout adapts to a small screen and everything works the same way.

Related tools

From other categories

Your file never leaves your device. Open your browser's Network tab while you use this page and you will see no upload — how that works.

Disclaimer. Published requirements change without notice. Confirm against the official source before you submit. Full disclaimer.