URL Encode Special Characters

Percent-encode &, =, ?, # and / so they can sit safely inside a query value. Free online URL encoder.

Part of the free URL Encoder. Runs in your browser — nothing is uploaded.

URL Encode Special Characters

Characters that structure a URL — &, =, ?, #, / — must be encoded when they appear as data. Otherwise the parser treats them as separators and your value is cut short.

Worked example: A value that contains separators

Text

a=1&b=2#top

Encoded

a%3D1%26b%3D2%23top

Practical tip

Encode values, then join with & and =. Never encode the finished query string as a whole if you still need those separators.

How to use this URL Encoder

  1. 1Use the live tool above — it runs entirely in your browser and never uploads your data.
  2. 2Paste the sample from the worked example, or use your own input.
  3. 3Copy the result, then adapt the same steps in your editor, script, or pipeline.

URL Encode Special Characters FAQs

What does %26 mean?

%26 is a percent-encoded ampersand. The decoder turns it back into &.

Do I encode # in a query value?

Yes. A raw # starts the fragment and the rest of the query never reaches the server.