Dev Tools icon

Dev Tools

A suite of utility tools for developers: Generators, converters, and transformers.

JWT Decoder

AI-generated

Summary

Decode a JSON Web Token (JWT) string to extract its payload data as a JSON object.

Inputs

  • Token (required) — The JWT string to decode. Provide the full token (usually three parts separated by dots).

Output shape

a JSON object representing the decoded payload of the JWT token

If the provided token is invalid, the node throws an error. The output contains the decoded JWT payload fields as key-value pairs, excluding signature information.

Examples

Example 1: Decode a JWT to inspect its claims

Provide the JWT token string in the 'Token' field.

Links

Discussion