# JWT decoder

> Decode a JSON Web Token online: header, payload claims, issue and expiry dates, and whether it has expired. The token is never stored.

Free tool by Orkosi. Page: https://orkosi.com/tools/jwt-decoder

Debugging a login? Paste the token to see which algorithm signed it, what claims it carries and when it expires, with the dates written out.

1. Paste the token (with or without "Bearer").
2. Press Decode.
3. Read the claims and check the expiry.

## Input

| Field | Type | Required | What it is |
| --- | --- | --- | --- |
| `token` | text | yes | Token. |

## Example

Input:

```json
{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyLCJleHAiOjE1MTYyNDI2MjJ9.4Adcj3UFYzPUVaVF43FmMab6RlaQD8A9V8wFzzht-KQ"
}
```

Result:

```json
{
  "algorithm": "HS256",
  "header": "{\n  \"alg\": \"HS256\",\n  \"typ\": \"JWT\"\n}",
  "payload": "{\n  \"sub\": \"1234567890\",\n  \"name\": \"John Doe\",\n  \"iat\": 1516239022,\n  \"exp\": 1516242622\n}",
  "issued_at": "2018-01-18T01:30:22.000Z",
  "expires_at": "2018-01-18T02:30:22.000Z",
  "not_before": null,
  "expired": true,
  "status": "Expired",
  "signature_present": true,
  "note": "Decoded only. The signature was not verified, so do not trust these claims without checking it."
}
```

## 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": "jwt-decoder", "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/jwt-decoder/run \
  -H "Authorization: Bearer $ORKOSI_API_KEY" -H "Content-Type: application/json" \
  -d '{"input":{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyLCJleHAiOjE1MTYyNDI2MjJ9.4Adcj3UFYzPUVaVF43FmMab6RlaQD8A9V8wFzzht-KQ"}}'
```

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

## Questions

**Is the signature verified?**

No. Verifying needs the secret or the public key of the issuer. This tool only decodes, so do not trust the claims of a token you have not verified.

**Is it safe to paste a token here?**

The token is decoded in memory and never stored or logged. Even so, treat a live production token like a password and prefer an expired one for debugging.

**What are iat, exp and nbf?**

Issued at, expires at and not before: Unix timestamps in seconds. They are shown as readable dates.

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