SanWebCorner · Developer Tools

URL Encoder & Decoder Online

Encode a URL component or decode percent-encoded text in your browser. Choose URL component mode for %20 spaces, or form/query-value mode when spaces should use a plus sign.

Free · no signupLocal browser processingCopy & download

How to use the URL encoder and decoder

  1. Choose the encoding mode.
  2. Paste one component or query value into the input editor.
  3. Select Encode value or Decode value.
  4. Copy or download the result. Changing the input or mode clears old output.

Component mode versus form mode

Input or behavior URL component Form/query value
Encode a space %20 +
Encode a literal plus %2B %2B
Decode + A literal plus A space

Component mode follows JavaScript encodeURIComponent/decodeURIComponent behavior. Form mode also applies form-value escaping and plus-space handling. See the MDN encodeURIComponent reference for component encoding.

Encoding example

Input: hello world + café
Component: hello%20world%20%2B%20caf%C3%A9
Form value: hello+world+%2B+caf%C3%A9

Encode a value, not the whole URL

Encoding a complete URL as one component also escapes separators such as : / ? & and =. This is appropriate when a whole URL is itself the value of another parameter, but not when you intend to preserve its navigation structure. Build URLs with the URL and URLSearchParams APIs when writing application code.

Errors and limits

Malformed percent escapes or invalid encoded UTF-8 cause a decoding error. An unpaired Unicode surrogate cannot be encoded by encodeURIComponent. Input is limited to 2 MiB. The tool does not navigate to, fetch, validate or certify the decoded destination.

Privacy

The converter processes input locally without a conversion API or browser-storage history. Normal site advertising and analytics are still present. Avoid entering secrets or private links that must never be placed into a website.

Frequently asked questions

Why does a plus become a space?

Form/query-value mode uses application/x-www-form-urlencoded-style plus handling. Switch to component mode to keep a literal plus during decoding.

Will decoding once remove every percent escape?

No. Each action decodes one layer. Repeated decoding can change meaning; do it only when you know the input is intentionally encoded more than once.

Is a decoded URL safe to open?

Decoding only reveals text. It does not establish that a link is trustworthy.

More developer tools