URL Encoder

Encode and decode URLs and query string components online for free.

How to use

  1. 1Choose Encode or Decode.
  2. 2Type or paste your text.
  3. 3Copy the result from the output box.

Features

  • Encode text or URL components
  • Decode percent-encoded text
  • Runs entirely in your browser

Supported formats

Plain textURL-encoded text

Privacy

Your text is encoded or decoded locally in your browser and is never sent to our server.

About this tool

URLs can only safely contain a limited set of characters — letters, digits, and a handful of symbols. Everything else (spaces, most punctuation, non-English characters) has to be represented as a percent sign followed by its byte value in hex, like %20 for a space. This tool encodes text using the same rules as JavaScript's encodeURIComponent, or decodes percent-encoded text back into plain text. Need to encode binary data instead of URL text? See the Base64 Encoder.

Frequently asked questions

What does URL encoding do?

It converts characters that aren't safe in a URL (like spaces and symbols) into percent-encoded sequences, e.g. a space becomes %20.

Should I encode an entire URL or just a part of it?

This tool encodes the full input as a single component, similar to JavaScript's encodeURIComponent. Encode only the value of a query parameter, not the whole URL with its protocol and slashes.

Is my text sent to a server?

No, encoding and decoding happen entirely in your browser.

Why does a '+' sometimes mean a space instead of %20?

That's a different, older encoding convention used specifically in query strings and form submissions (application/x-www-form-urlencoded), not general URL encoding. This tool follows the standard percent-encoding rules (%20 for a space), which is correct for a URL path or most individual components.