Skip to content
Created by Iternal Technologies, the AI Strategy ExpertsBy Iternal (opens in a new tab)

Escape & Encode

URL Encode

Text

Paste text to percent-encode it for a URL. Spaces, reserved characters and emoji are encoded as you type.

Encoded URL

About URL Encode

URL Encode percent-encodes text so it can be placed in a URL. With the default settings the output matches encodeURIComponent: a space becomes %20, reserved characters are encoded, and emoji are written as UTF-8 bytes.

Keep URL structure switches to encodeURI, leaving the delimiters of a full URL in place (: / ? # @ ! $ & ' ( ) * + , ; =) so an address stays readable. Square brackets are still encoded, because encodeURI encodes them. Form encoding then writes each space as +, matching an application/x-www-form-urlencoded body.

Encoding runs in your browser and the text you paste is not uploaded. Swap sends the result to URL Decode so you can check the round trip in one click.

Frequently asked questions

What does URL encoding do?

It rewrites characters that are not allowed raw in a URL as percent-encoded UTF-8 bytes. A space becomes %20 and an emoji becomes the byte sequence it occupies. With the default settings the output matches encodeURIComponent.

When should I keep the URL structure?

When the input is a whole URL and you want the scheme, slashes, query marker and hash to stay readable. The option uses encodeURI. Square brackets are still encoded. Use the default when the text is a single query value.

What does form encoding change?

It writes a space as + instead of %20, and on decode it reads + as a space, matching an application/x-www-form-urlencoded body. A literal plus stays %2B unless Keep URL structure is also on. With both on, a plus is left as-is and decode reads it as a space.

Is this the old JavaScript escape function?

No. The deprecated escape function is not used. Encoding calls encodeURIComponent, or encodeURI when Keep URL structure is on.

Is the text I paste uploaded anywhere?

No. Encoding runs in your browser and the text you paste is never uploaded, logged or stored. Google Analytics records page views and feature use, never content.

Iternal · AI Blueprint Builder

Plan the AI initiative, not just the output

The AI Blueprint Builder scores each use case across value, feasibility, cost, governance, risk, adoption and readiness before you commit budget. Free to start, about 60 minutes.

Open the AI Blueprint Builder (opens in a new tab)