# auth0/jwt-decode

Decode JWT tokens; useful for browser applications.

Repository: https://github.com/auth0/jwt-decode
Canonical: https://ross.abutalabs.com/products/jwt-decode
Language: TypeScript
License: MIT
License Family: permissive
Topics: jwt, dx-sdk
Last push: 2026-08-20T22:12:29+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 8, longevity 100
- inputs: {"age_days": 4573, "days_push": 13, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3395, forks 343 (observed 2026-08-28T04:08:02.249306+00:00)

## What it is
A small TypeScript library that decodes JWT tokens (Base64Url-encoded JSON) in browser and Node environments. It does not validate signatures or claims; tokens must be verified server-side.

## Use cases
- decode a jwt token payload in the browser
- read jwt claims like exp or iat client-side
- extract the kid from a jwt header
- inspect a jwt token without verifying it
- decode base64url-encoded token parts in javascript

## When to choose
- you need to inspect JWT payload or header contents client-side
- you already validate tokens on the server and just need to read claims in the browser
- you want a tiny, dependency-free decoding utility

## When to avoid
- you need to verify token signatures or enforce expiration/issuer checks
- you need server-side JWT authentication middleware
- you need to create or sign JWT tokens

## Facets
- artifact type: library
- maturity: stable
- function: auth, serialization, developer-tools
- domain: security, web-development, frontend
- platform: browser, cross-platform
- tags: jwt, token-decoding, base64url, browser, typescript, no-validation, authentication, nodejs

## Member repositories
- auth0/jwt-decode (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:02.249306+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:38:56.256774+00:00, confidence not recorded.
  - readme: https://github.com/auth0/jwt-decode (fetched 2026-08-28T04:08:02.249306+00:00, sha 8d1279711c6d)
  - registry_npm: https://registry.npmjs.org/jwt-decode (fetched 2026-08-29T09:32:59.159482+00:00, sha 52318400ad92)
- Data as of 2026-08-30T08:39:29.467469+00:00.
