URL Encoder/Decoder

Encode and decode URL component text without sending data to a server.

About the URL Encoder/Decoder

URL encoding replaces characters that have special meaning in a URL component with percent-encoded values. Decoding converts those values back to readable text.

How to use it

  1. Enter plain text and choose Encode to create a URL-safe component.
  2. Paste percent-encoded text and choose Decode to restore it.
  3. Copy the result when it is ready or clear both fields to start again.

How the conversion works

Encoding uses encodeURIComponent and decoding uses decodeURIComponent. These browser functions preserve Unicode text and escape characters that could otherwise change URL query or path syntax.

When to use this tool

Use it for individual query values, path segments or other URL components. It is not intended to encode an entire URL because separators such as colon, slash and question mark have structural meaning.

Example

Encoding the query value coffee & tea produces coffee%20%26%20tea, which can be safely inserted as one URL parameter value.