FileToolsHub logo

URL Encoder

Percent-encode one query value. Spaces become %20, and slashes are encoded too.

Processing: runs in your browser, nothing uploaded

✓ Free to use✓ No sign-up needed✓ Nothing to install

About URL Encoder

Query strings break when a value contains a space, an ampersand, or a non-English character. URL Encoder percent-encodes the text you paste, using the same rules as encodeURIComponent.

Encode the value, not the whole address

encodeURIComponent escapes almost everything that is not a letter, digit, or the set - _ . ! ~ * ' ( ). Spaces become %20, not a plus sign. Slashes, question marks, and colons are escaped too. If you paste https://example.com/a?q=hello world, the structure of the URL is escaped and the result is no longer a URL you can open. Paste only the part that belongs in one parameter, then put it back after q= yourself. A plus sign in the input becomes %2B, which is what you want when the plus is data rather than a stand-in for a space.

Percent encoder, and the reverse

People also call this a percent encoder because the output is % followed by two hex digits. URL Decoder runs decodeURIComponent the other way. If a value was encoded twice, one decode still shows percent signs and you run it again. Base64 Encoder is a different alphabet for embedding bytes, not for query strings. Morse Encoder and JWT Encoder solve other encodings. Do not percent-encode a token and assume that hides it. The token is still in the URL for anyone who can read the address bar.

Characters that surprise people

A hash mark starts a fragment in a real URL, so it must be encoded when it is part of a value. An ampersand starts the next parameter, so an unencoded ampersand splits your value in two. Unicode is encoded as UTF-8 bytes, which is what browsers expect. This page does not build the rest of the query, add UTM tags, or choose application/x-www-form-urlencoded plus-for-space behavior.

How to use

  1. 1

    Paste only the query value, not a full URL you still need to open.

  2. 2

    Run the encoder. Spaces become %20.

  3. 3

    Copy the percent-encoded value back into the parameter. Decode later with URL Decoder.

Privacy

Percent-encoding runs in the browser. The text stays on this device.

Frequently asked questions

Is this a percent encoder?

Yes. The output uses percent signs and two hex digits, from encodeURIComponent. Spaces become %20, not plus signs.

Should I paste a full URL?

No, if you still need a working address. Slashes and question marks are encoded too. Paste only the query value.

How do I undo it?

Open URL Decoder. If the value was encoded twice, decode it a second time.

Does plus mean space?

Not on this page. A plus in your text is encoded as %2B. This is not form-encoding that turns spaces into plus signs.

Which encoding?

Standard encodeURIComponent for query parameters.

Full URL encoding?

For full URLs, encode only the query portion.

Need the reverse?

Use URL Decoder on FileToolsHub to turn percent-encoded strings back into readable text.

Browse all Text Tools · Sitemap