# URL Encode / Decode

> Percent-encode query values or whole URLs. Runs entirely in your browser — nothing you paste is sent anywhere.

Source: https://toffeekit.com/tools/url-encoder

**Category:** [Developer](https://toffeekit.com/category/developer) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/url-encoder

**Also useful for:** url, percent, encode, decode, uri

## How it works

1. Paste a URL or a piece of text into the Input box.
2. Pick Encode or Decode from the Mode switch.
3. Choose a Scope: Query value for a single parameter, or Whole URL to keep the address structure.
4. Click Copy or Save, or press Swap to reverse the operation on the result.

## FAQ

### How do I URL encode a string?

Paste the text, set Mode to Encode and Scope to Query value. Spaces become %20, & becomes %26, and other reserved characters are percent-encoded.

### What is the difference between Query value and Whole URL?

Query value encodes everything that is not safe, including : / ? & and =, so it suits a single parameter. Whole URL leaves those structural characters alone and only encodes spaces and unsafe characters.

### How do I decode %20 and other percent codes?

Set Mode to Decode and paste the URL. %20 turns back into a space, %26 into &, and UTF-8 sequences such as %C3%A9 into the right letter.

### Why do I get a Malformed percent-encoding error?

The text contains a % that is not followed by two hex digits, such as a literal 100% in the string. Encode that % as %25 or remove it before decoding.

### Does decoding turn a plus sign into a space?

In Query value scope, yes, because + means a space in form-encoded query strings. In Whole URL scope a + is left as it is.

### Is URL Encode / Decode free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.

## Privacy

URL Encode / Decode runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [JSON Formatter](https://toffeekit.com/tools/json-formatter) — Format, minify and validate JSON with clear errors.
- [Base64 Encode / Decode](https://toffeekit.com/tools/base64-encoder) — Encode text to Base64 or decode it back, UTF-8 safe.
- [HTML Entities](https://toffeekit.com/tools/html-entity-encoder) — Escape < > & and quotes, or decode entities.
- [JWT Decoder](https://toffeekit.com/tools/jwt-decoder) — Read a token's header, claims and expiry.
- [Hash Generator](https://toffeekit.com/tools/hash-generator) — MD5, SHA-1, SHA-256, SHA-384 and SHA-512 at once.
- [UUID Generator](https://toffeekit.com/tools/uuid-generator) — Random v4 or time-sorted v7 UUIDs, in bulk.

