How to URL-encode text

Special characters break URLs unless they're percent-encoded. Here's how to encode and decode them correctly.

Open URL Encoder

Steps

  • Open the URL encoder and paste your text.
  • Choose component mode (query values) or whole-URL mode.
  • Copy the encoded result, or switch to the decoder.

Component vs whole-URL

Component mode encodes everything, including / : and ? — right for a single query value. Whole-URL mode preserves those structural characters so a full link stays valid.

Tools used in this guide

Related guides

How to URL-encode text — FAQ

It replaces unsafe characters with percent-encoded equivalents (like %20 for a space) so text is valid in a URL.