# URL Encoder / Decoder

> Encode text or URLs to percent-encoding, or decode %20-style strings back to plain text, using encodeURIComponent. Instant, free and in your browser.

- Page: https://mondaytool.com/tools/url-encoder-decoder
- Category: network-api
- Price: free, no sign-up. Most tools run in the browser, so input is not uploaded.
- Use it: open https://mondaytool.com/tools/url-encoder-decoder. It is an interactive web page; this file is its documentation.

Last updated: 13 October 2026

## Encode and decode URLs instantly

This **URL encoder / decoder** converts text to percent-encoding and back. Use it to put spaces, symbols or non-English letters safely inside a query string, or to read an encoded link such as `search%3Fq%3Dred%20shoes`. The result updates as you type.

## How to use it

1. Choose **Encode** or **Decode**. Switching tabs clears both boxes.
2. Paste or type your text or URL in the input box.
3. Read the result in the output box and click **Copy**.

## How it works

Encoding uses JavaScript's `encodeURIComponent`. Every character except `A–Z a–z 0–9 - _ . ! ~ * ' ( )` is turned into its UTF-8 bytes, written as `%` plus two hex digits. Decoding uses `decodeURIComponent` to reverse it.

Example: `hello world & más` encodes to `hello%20world%20%26%20m%C3%A1s`. The space becomes `%20`, the ampersand `%26`, and “á” becomes two bytes, `%C3%A1`.

Because this encodes a *component*, a full address is encoded too: `https://a.com/?q=red shoes` becomes `https%3A%2F%2Fa.com%2F%3Fq%3Dred%20shoes`. That is what you want when passing a URL as a parameter inside another URL. To fix one value, encode only that value.

## Common encoded characters

| Character | Encoded | Character | Encoded |
| --- | --- | --- | --- |
| space | %20 | & | %26 |
| / | %2F | = | %3D |
| ? | %3F | # | %23 |
| : | %3A | + | %2B |
| @ | %40 | , | %2C |

## Frequently asked questions

### Why does the decoder show “Invalid encoded string”?

The input contains a `%` that is not followed by a valid two-digit hex code, or the bytes do not form valid UTF-8. Check that the string was copied in full.

### Why is + not turned into a space?

`decodeURIComponent` only decodes `%` codes. Form data often uses + for spaces; replace + with %20 before decoding if you need that.

### Is my text sent to a server?

No. Encoding and decoding run in your browser.
