The Util Box

URL Encoder

Free online url encoder for developers. Percent-encode URLs and query strings. Fast and private.

URL Encoded
Enter text above

Embed this tool

Copy and paste the code below into your website to embed this tool for free. An attribution link to The Util Box is required.

<iframe src="https://www.theutilbox.org/embed/url-encoder" width="600" height="500" frameborder="0" style="border: none; max-width: 100%;" title="Free URL Encoder tool from The Util Box"></iframe>
<!-- Free tool by The Util Box — https://www.theutilbox.org/tools/url-encoder -->
<a href="https://www.theutilbox.org/tools/url-encoder">URL Encoder by The Util Box</a>

Frequently Asked Questions about URL Encoder

URL Encoder — Percent-Encode Any String

This URL encoder converts a string into its percent-encoded form, so it can be dropped safely into a query string, a path segment or a form field.

The encoding is the standard application/x-www-form-urlencoded one: a space becomes +, and every character outside the unreserved set becomes a % followed by two hex digits.

What Gets Encoded

The characters that survive untouched are the unreserved ones: the letters, the digits, and - _ . ~. Everything else is escaped, which includes the space, the ampersand, the equals sign, the question mark, the hash, the slash, the colon and every non-ASCII character.

That last part matters for anything outside ASCII: an accented letter or a CJK character is encoded as its UTF-8 bytes, each one as a separate %XX sequence. A single é becomes %C3%A9 — two escapes for one character.

Honest Limits

  • It encodes the whole input as one value. There is no option to leave parts of a URL alone, so you cannot use it to encode just the query parameter of a full address without also escaping the separators you wanted to keep.
  • A space becomes a plus sign, which is correct for form encoding but not for a URL path, where %20 is the right form.
  • It does not touch an existing percent escape, so encoding a string that is already partly encoded produces a double-encoded result.
  • No decoding mode here. Use the URL Decoder to go the other way.

Related Developer Tools

The encoding runs entirely in your browser — your text is never uploaded.