Skip to main content

Security Toolbox

Token Decoder

Token Decoder inspects a JWT or another common token and prints a JSON report. It does not verify signatures and it does not decrypt JWE payloads.

The library import is lupaxa.token_decoder. The command is token-decoder.

Install

Python 3.11 or newer. There are no runtime dependencies.

pip install lupaxa-token-decoder

Quick Start

Pass a token, or pipe one line on stdin:

token-decoder "$TOKEN"
printf '%s\n' "$TOKEN" | token-decoder

With no argument, a terminal prompts on stderr. The JSON report is written to stdout.

Note: A token passed as an argument can be stored in your shell history. Pipe it on stdin when that matters. signature_verified is always false. This tool never checks a signature and never decrypts a JWE.

Library

from lupaxa.token_decoder import decode_token

print(decode_token(token)["type"])

lupaxa is a namespace package. There is no lupaxa/__init__.py.

What it Decodes

Type When
JWT Three segments whose header is JSON and contains alg. exp, iat, and nbf gain a UTC reading beside the raw value.
JWE Five segments whose header is JSON and contains enc. The ciphertext is reported, not decrypted.
JSON The token itself is a JSON document.
Hexadecimal An even-length hex string. UTF-8 text is included when the bytes decode.
Base64 / Base64URL Standard or URL-safe Base64 that decodes to UTF-8. JSON text is parsed.
Opaque / Unknown None of the formats above.

A leading Bearer prefix is ignored. Line wrapping is removed except inside a JSON document.

Command Line Options

Option Meaning
TOKEN Token to decode.
- Read one line from stdin.
--help, -h Print the command summary and exit.
--version Print the version and exit.
The Lupaxa Project Footer

Metadata

Release files for lupaxa-token-decoder 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lupaxa-token-decoder 0.1.0
File Size Uploaded Provenance Actions
lupaxa_token_decoder-0.1.0.tar.gz 7.6 kB With provenance Details for lupaxa_token_decoder-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lupaxa-token-decoder 0.1.0
File Interpreter ABI Platform Actions
lupaxa_token_decoder-0.1.0-py3-none-any.whl Python 3 none any Details for lupaxa_token_decoder-0.1.0-py3-none-any.whl

Total release size: 16.8 kB

Release files / lupaxa_token_decoder-0.1.0.tar.gz

Download URL lupaxa_token_decoder-0.1.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
fc69bb359626596a0614bd0c7d2782f810e9cff4489b6f6778ed70381166d21d
BLAKE2b-256 checksum
How to use checksums
37a998ecf72c6d5de9543b19210f0fcaf81a7ab1091da3818d0f5d346c98e32b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / lupaxa_token_decoder-0.1.0-py3-none-any.whl

Download URL lupaxa_token_decoder-0.1.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6e79bb80402c7a48a7e73f098560d8489a58d204e00406712a46fe4c2fcf05dd
BLAKE2b-256 checksum
How to use checksums
f44145bed1086d6b552a1224631cc49ae5dfacff00b6c668ecdcce5fb6341742
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for lupaxa-token-decoder 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for lupaxa_token_decoder-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page