← All free tools Converter tools

URL encoder

Encode any string input to URL format.

About this tool

The URL encoder makes text safe to put in a web address. Characters that mean something in a URL, or aren’t allowed in one, are replaced with percent codes: a space becomes %20, & becomes %26 and é becomes %C3%A9. So “a b&c=d/é” becomes a%20b%26c%3Dd%2F%C3%A9.

How to use the URL encoder

  1. Type or paste the text, usually one value rather than a whole URL.
  2. The encoded text appears as you type.
  3. Copy it into your link or query string.

When you need it

  • Query string values, such as a search term or a redirect address: ?q=red%20shoes&next=%2Faccount.
  • Links built by hand in emails, spreadsheets or code.
  • API requests that pass text, JSON or other URLs as parameters.

Encode values, not whole URLs

This tool encodes every reserved character, the way JavaScript’s encodeURIComponent does, which is right for a single value. Run a whole URL through it and the :// and / are encoded too, which breaks the link. Encode each value, then put the URL together. To read an encoded URL, use the URL decoder. It all runs in your browser.

Have a project in mind?

Have a brand or a product to grow?