b4rn1 · devtoolsdeveloper
Bin DV-07·Developer

URL encoder

Percent-encode a string for a URL, or decode one back. Shows both component and full-URL rules so the result is right.

BinDV-07
DepartmentDeveloper
Free runsUnlimited
Runs onYour device
Loading the tool…

The code for this tool is fetched only when you open it.

What url encoder does

URL encoder percent-encodes text for use in a query string or path, and decodes an encoded URL back to readable text. It covers both component encoding and full-URI encoding, which are different jobs with different reserved characters.

How it works

encodeURIComponent and encodeURI, with decode counterparts, plus a manual path that handles malformed percent sequences without throwing.

Runs on your device

The file never leaves this tab. It is decoded by the browser, worked on in memory and encoded again — no request carries it, and there is no server-side copy to delete afterwards because none is made.

Formats and limits

LimitsNo limit. Encoding is a single pass; malformed input in decode mode is reported rather than silently mangled.
PriceFree, unlimited, no account

Worth knowing

  • The distinction matters: encodeURIComponent escapes &, = and ?, which is right for a parameter value, while encodeURI leaves them alone, which is right for a whole address.
  • A space becomes %20 rather than + here, because + is only a space in form encoding. In a path segment or a fragment, + is a literal plus.

Questions about url encoder

Why did my space become %20 instead of +?

Because + is a space only in application/x-www-form-urlencoded bodies. In a URL path or query string, %20 is unambiguous and + means a literal plus sign.

Should I encode the whole URL or just the parameter?

Just the parameter value, with component encoding. Encoding a whole URL escapes the :// and ? separators and produces something that no longer parses as a URL.

What is the difference between the two modes?

Component mode encodes everything reserved, which is right for a single value. Full-URL mode leaves ? & = / : intact so a whole link survives.

Why did my plus signs turn into spaces?

Form encoding treats + as a space. The decoder handles it; switch modes if you need a literal plus.

Is my file uploaded anywhere?

No. There is no upload step and no server-side copy: the browser decodes and re-encodes the file in this tab, and the network carries nothing about it.

Will it run on a plane?

Once the page has loaded, yes — the processing code runs locally and no further request is needed. The first load has to come from the network like any page.

What does it cost?

Free with no account and no daily limit — counting and calculating are not metered, because they cost nothing to run.

URL encode and decode — percent-encoding for query strings · b4rn1