JWT Encoder / Decoder

JWTs are the standard format for API authentication tokens. This tool lets you paste a JWT to decode its header and payload, or build a JWT from scratch with your own header and payload JSON. Optionally provide a secret to sign or verify the HMAC-SHA256 signature.

Processed on your deviceNo signup required100% free
JWT Token
Decoded

Decoded JWT will appear here

Paste a token and click Decode

How to Use

  1. Choose Encode or Decode mode.
  2. For decoding: paste a JWT token and click Decode.
  3. For encoding: enter header and payload JSON, optionally add a secret for signing.
  4. View the decoded header, payload, and signature status.
  5. Copy the result with one click.

Helpful Information

JWTs are the standard format for API authentication tokens. This tool lets you paste a JWT to decode its header and payload, or build a JWT from scratch with your own header and payload JSON. Optionally provide a secret to sign or verify the HMAC-SHA256 signature.

Related Tools

Frequently Asked Questions

What algorithms are supported?
HMAC-SHA256 for signing/verification. The decoder can read any algorithm's header, but signature verification only works with HMAC-SHA256.
Can I decode a JWT without the secret?
Yes. You can always decode the header and payload without a secret. The secret is only needed to verify the signature.
Is this safe for production tokens?
This tool is for inspection and debugging. Never paste real production secrets into a browser tool.
Is JWT Encoder / Decoder free to use?
Yes. JWT Encoder / Decoder is free on Tools2, with no signup and no hidden paywall.
Do I need to install anything to use JWT Encoder / Decoder?
No. This tool runs in your browser and works on desktop and mobile devices.
Are my files or text uploaded when I use JWT Encoder / Decoder?
No. Processing happens locally in your browser, so your content is not uploaded to a Tools2 server.