Swelıty
Tools for everyone

Free Online URL Encoder

Encode text and URLs to be safely transmitted over the internet.

Input size: 50 characters.

Plain text input

Output

URL Encoded. Output size: 126 characters.

How to use

  1. Paste or type the text you want to encode, or open a text file.

  2. Press Encode.

  3. Copy the result, or download it as url-encoded.txt.

  4. Put the encoded value into your link after the = sign of a parameter.

Why use this tool

  • Same as encodeURIComponent

    Output matches what this JavaScript function returns, so you can check your own code against it.

  • Full Unicode

    Accented letters, other alphabets and emoji are encoded from their UTF-8 bytes.

  • Decoder next door

    A switch above the editor takes you to the URL Decoder to reverse the process.

About this tool

URL Encoder percent-encodes text so it can be placed safely inside a web address, for example as the value of a query parameter, a search term or part of a path. A space becomes %20, an ampersand becomes %26, and letters outside basic English, including emoji, become a series of percent codes based on UTF-8. It works the same way as the JavaScript function encodeURIComponent. That means characters with a special job in an address, such as : / ? # = and &, are encoded too. The page opens with an example already encoded.

Frequently asked questions

Letters A to Z and a to z, digits 0 to 9, and these marks: - _ . ! ~ * ' ( ). Everything else is encoded.

You can, but the result also encodes the colon, slashes and question mark, so it no longer works as a link on its own. Do that only when the whole address is a value inside another address. Otherwise encode each parameter value separately.

As %20. A plus sign for a space belongs to the older form-encoding style. A real plus sign in your text becomes %2B.

The percent signs are encoded again, so %20 turns into %2520. Decode it first if you are not sure.

No. Anyone can decode it. It only makes text safe to carry in an address.