# URL encoder and decoder

> URL-encode or decode text online. Encode a single query value or a whole address, and read %20-style escapes back into text. Free.

Free tool by Orkosi. Page: https://orkosi.com/tools/url-encoder

Spaces, ampersands and accents break a link unless they are percent-encoded. Encode a value before you put it in a query string, or decode a link to see what it really says.

1. Paste the text or the URL.
2. Choose Encode or Decode and what you are encoding.
3. Press Convert and copy the result.

## Input

| Field | Type | Required | What it is |
| --- | --- | --- | --- |
| `text` | text | yes | Text or URL. |
| `mode` | "encode" \| "decode" | no | Action. Default: "encode". |
| `scope` | "component" \| "url" | no | What is it. Default: "component". |

## Example

Input:

```json
{
  "text": "café & crème / 100% français",
  "mode": "encode",
  "scope": "component"
}
```

Result:

```json
{
  "output": "caf%C3%A9%20%26%20cr%C3%A8me%20%2F%20100%25%20fran%C3%A7ais"
}
```

## Run it

It needs a free Orkosi account, nothing else. No credits are used.

- **A person**: open the page, enter an e-mail once, use the tool.
- **Claude or ChatGPT**: add the Orkosi connector `https://orkosi.com/api/v1/public/mcp` and sign in, or create the free account on the sign-in page. Then call `orkosi_run_free_tool` with `{ "tool": "url-encoder", "input": { … } }`.
- **Any agent or program that can make an HTTP request**:

  1. Once, create the account: `POST https://orkosi.com/api/v1/public/signup` with `{ "name": "…", "email": "…", "terms_accepted": true }` and no key. Ask the person for the e-mail and their agreement to the terms first. The answer carries `data.api_key`, shown once.
  2. Run the tool:

```bash
curl -X POST https://orkosi.com/api/v1/public/tools/url-encoder/run \
  -H "Authorization: Bearer $ORKOSI_API_KEY" -H "Content-Type: application/json" \
  -d '{"input":{"text":"café & crème / 100% français","mode":"encode","scope":"component"}}'
```

The answer is `{ "data": { "tool": "…", "result": { … } } }`. A call without a key is answered 401 with the signup steps as data.

## Questions

**A query value or a whole URL: what is the difference?**

A query value has every reserved character encoded, including / ? & and =. A whole URL keeps those, because they are its structure.

**Why is a space sometimes + and sometimes %20?**

Forms write a space as + in the query string; everywhere else it is %20. When decoding a query value, this tool reads both as a space.

**Why does decoding fail?**

A % must be followed by two hex digits. A stray % sign, often from text that was never encoded, cannot be decoded.

All free tools: https://orkosi.com/tools.md
