Home › Developer Tools › JWT Decoder

JWT Decoder

Paste a JSON Web Token to see its header, payload and claims in plain language, with readable dates and a live expiry countdown. Optionally verify the signature with a secret or public key. Everything stays in your browser.

Last updated:

Decoded locally. Your token is never sent anywhere.
Advertisement

How to use the JWT Decoder

  1. Paste your JWT into the box. A leading Bearer is removed automatically.
  2. Read the decoded parts: the header shows the algorithm, the payload shows every claim as formatted JSON.
  3. Check the claims table for readable issue, not-before and expiry dates and the live countdown.
  4. Verify the signature (optional): type the shared secret for HS256/384/512 or paste the public key for RS, PS, ES or EdDSA tokens, then press Verify signature.
  5. Copy the header or payload JSON with one click.

Anatomy of a JSON Web Token

A signed JWT (a JWS in compact form) is three base64url strings joined by dots: header.payload.signature. Base64url is ordinary base64 with - and _ instead of + and / and no = padding, which makes the token safe for URLs and HTTP headers.

PartContainsExample (decoded)
HeaderThe signing algorithm (alg), token type (typ) and sometimes a key ID (kid){"alg":"HS256","typ":"JWT"}
PayloadThe claims: who the token is about, who issued it, for whom, and when it is valid{"sub":"42","exp":1767225600}
SignatureThe algorithm applied to base64url(header) + "." + base64url(payload) with a secret or private keyRaw bytes, base64url encoded

Because the header and payload are only encoded, never put passwords or other secrets in a JWT payload unless the token is also encrypted (JWE).

Registered claims and time values

RFC 7519 defines seven registered claim names. Time claims are NumericDate values: whole seconds since 1 January 1970 UTC, not milliseconds. For example exp: 1767225600 is 1 January 2026 00:00:00 UTC.

ClaimNameWhat servers check
issIssuerMatches the expected identity provider
subSubjectThe user or client the token represents
audAudienceContains this API's identifier, otherwise reject
expExpiration timeCurrent time is before exp (often with a small clock-skew allowance)
nbfNot beforeCurrent time is at or after nbf
iatIssued atUsed to compute token age
jtiJWT IDUnique ID, can be stored to block replays

Signing algorithms compared

algTypeKey needed to verifyTypical use
HS256 / HS384 / HS512HMAC with SHA-2The same shared secret used to signOne service that both issues and checks tokens
RS256 / RS384 / RS512RSA PKCS#1 v1.5RSA public keyOAuth and OpenID Connect providers
PS256 / PS384 / PS512RSA-PSSRSA public keyModern RSA deployments
ES256 / ES384 / ES512ECDSA on P-256 / P-384 / P-521EC public keyShort signatures, mobile and IoT
EdDSAEd25519Ed25519 public keyFast, modern signatures
noneUnsignedNothingNever accept in production

An HMAC secret for HS256 should be at least 32 random bytes. Short, guessable secrets can be brute-forced offline from any captured token.

Frequently asked questions

What is a JWT?

A JSON Web Token is a compact string with three base64url parts separated by dots: a header that names the signing algorithm, a payload of claims such as the user ID and expiry time, and a signature that proves the first two parts were not changed.

Is it safe to paste my token here?

Yes. The decoder runs entirely in your browser with JavaScript and the Web Crypto API. The token, secret and keys are never uploaded, logged or stored. Even so, treat live production tokens like passwords and avoid sharing them.

Does decoding a JWT mean it is valid?

No. Anyone can decode a JWT because the header and payload are only base64url encoded, not encrypted. A token is only trustworthy after its signature is verified with the right secret or public key and its exp, nbf, iss and aud claims are checked.

How do I know when a JWT expires?

The exp claim holds the expiry time as Unix seconds. The decoder converts it to your local time and UTC, shows a live countdown, and switches to an Expired badge once the time has passed.

How do I verify an HS256 signature?

Enter the shared secret that the server uses to sign tokens. The tool computes HMAC-SHA256 over the header and payload and compares it with the signature. Tick the base64 option if your secret is stored base64 encoded.

Can it verify RS256 tokens?

Yes. Paste the issuer's public key as a PEM block that starts with BEGIN PUBLIC KEY, or as a JWK or JWKS JSON from the provider's jwks endpoint. RS, PS, ES (P-256, P-384, P-521) and EdDSA tokens are supported where your browser supports the algorithm.

Why does my token show 'NOT YET VALID'?

Its nbf (not before) claim is in the future, so servers should reject it until then. This often means the issuing server's clock is ahead of yours.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Base64 Encoder DecoderEncode or decode Base64 text and files, and make data URIs.JSON FormatterBeautify, minify and validate JSON, with a collapsible tree view.Hash GeneratorGenerate MD5, SHA-1, SHA-256 and SHA-512 hashes of text or files.URL Encoder DecoderPercent-encode or decode URLs, query strings and form data.API Request TesterSend GET, POST, PUT and DELETE requests with headers and a body, then inspect the response.cURL to Code ConverterConvert curl commands to JavaScript fetch, Axios, Python requests, Node.js, PHP and Go code.HTTP Header ParserPaste raw HTTP headers to get a table explaining each one plus a security headers grade.JWT GeneratorCreate and sign HS256, HS384 or HS512 JSON Web Tokens in your browser and verify them.Password GeneratorCreate strong passwords and passphrases.MD5 Hash GeneratorGenerate MD5 hashes of text, lines or files and verify checksums.SHA-256 Hash GeneratorSHA-256 and HMAC-SHA256 hashes of text, lines or files, in hex or Base64.HTML Entity Encoder / DecoderEscape and unescape HTML entities, named or numeric.Bcrypt Hash Generator & CheckerCreate bcrypt password hashes and check a password against a hash.Binary TranslatorConvert text to binary, hex, octal and back.HMAC GeneratorGenerate and verify HMAC signatures with SHA-256, SHA-512, SHA-1 or MD5.CRC32 Checksum CalculatorCalculate CRC-32, CRC-32C, CRC-16 and Adler-32 checksums of text or large files.Password Strength CheckerSee how strong a password really is, how long it takes to crack and how to improve it.Caesar CipherEncode and decode Caesar shift ciphers and crack unknown shifts with a ranked brute force.Vigenère CipherEncrypt and decrypt Vigenère and Autokey ciphers, and crack unknown keys with frequency analysis.Atbash CipherEncode and decode Atbash ciphers (A↔Z, B↔Y) in Latin or Hebrew, with a live letter mapping table.ASCII TableFull ASCII code chart 0–255 in decimal, hex, octal, binary and HTML, with search and copy.Unicode Character LookupFind Unicode characters by name or code point and copy them with UTF-8, HTML and code escapes.Punycode ConverterConvert international domain names, emails and URLs between Unicode and xn-- Punycode, in bulk.JSON Escape / UnescapeEscape text for a JSON string, unescape \n and \" back to text, or stringify a whole object.Binary to HexConvert binary to hex instantly with steps and signed mode.Hex to BinaryConvert hex to binary instantly with steps and signed mode.Binary CalculatorAdd, subtract, multiply, divide, AND, OR, XOR and shift binary numbers with decimal values.Hex CalculatorHexadecimal + − × ÷ and AND, OR, XOR, NOT, shifts with decimal and binary equivalents.Base32 Encoder / DecoderEncode and decode Base32 (RFC 4648), Base32hex, Crockford and z-base-32 from text, hex or files.Base58 Encoder / DecoderEncode and decode Base58 and Base58Check (Bitcoin alphabet) from text or hex, with checksum verification.Unicode Escape / UnescapeConvert text to \uXXXX, \u{...}, \x, &#...; or CSS escapes and decode them back.File Hash CheckerGet MD5, SHA-1, SHA-256 and SHA-512 checksums of files and verify them against a hash.TOTP GeneratorGenerate 2FA one-time codes from a secret key, create otpauth QR codes and verify codes.SSL Certificate DecoderDecode PEM SSL/X.509 certificates: subject, issuer, expiry, SANs, key and fingerprints.Text Encryption ToolEncrypt and decrypt text with a password using AES-256-GCM, entirely in your browser.Argon2 Hash GeneratorHash passwords with Argon2id, Argon2i or Argon2d and verify them against an encoded hash.Base64 to PDFDecode a Base64 string to a PDF with preview and download, or encode a PDF to Base64.Bitwise CalculatorCalculate AND, OR, XOR, NOT and bit shifts at 8–64 bits with a bit grid and all bases.RSA Encryption ToolEncrypt text with an RSA public key and decrypt it with the private key using RSA-OAEP in your browser.SAML DecoderDecode SAMLRequest and SAMLResponse messages to readable XML, attributes and validity times.SSL Certificate ConverterConvert SSL certificates and keys between PEM, DER, PFX/P12 and P7B in your browser.Checksum CalculatorCompute 8-bit sum, two's complement LRC, XOR/BCC, NMEA, Fletcher and Internet checksums of bytes.PBKDF2 Hash GeneratorDerive PBKDF2 keys from a password, salt and iteration count with SHA-1, SHA-256 or SHA-512.Protobuf DecoderDecode raw Protocol Buffers hex or Base64 without a schema, or add a .proto for field names.XML Escape / UnescapeEscape & < > " ' for XML text and attributes, unescape entities back, or wrap text in CDATA.Binary Search Tree VisualizerInsert, delete and find in BST, AVL and red-black trees with animated rotations and traversals.CSR GeneratorCreate a certificate signing request (CSR) and private key with SANs, RSA or ECDSA, in your browser.MongoDB ObjectId to TimestampDecode a MongoDB ObjectId to its creation date, or build ObjectIds from dates for range queries.PGP Encrypt / DecryptEncrypt, decrypt, sign and verify PGP messages with your armored keys, entirely offline.PGP Key GeneratorGenerate an OpenPGP key pair (Curve25519, NIST ECC or RSA) with passphrase and expiry, offline.Quoted-Printable Encoder / DecoderEncode or decode quoted-printable email text (MIME) with UTF-8 and 76-character soft line breaks.Self-Signed Certificate GeneratorCreate a self-signed SSL certificate and key for localhost or dev servers, as PEM or PFX.SHA-1 Hash GeneratorSHA-1 and HMAC-SHA1 of text or files in hex or Base64, plus Git blob hashes and verify.SHA-512 Hash GeneratorSHA-512 and SHA-384 hashes of text or files in hex or Base64, HMAC and hash verification.SRI Hash GeneratorCreate Subresource Integrity hashes (sha256/384/512) and ready <script> or <link> tags.SSH Key GeneratorGenerate Ed25519 or RSA SSH key pairs in your browser: OpenSSH public key plus private key.String Escape / UnescapeEscape or unescape strings for JavaScript, Java, C#, Python, C, SQL, regex, CSV and shell.UTF-8 Encoder / DecoderConvert text to UTF-8 bytes in hex, decimal, binary, \x or % and decode bytes back to text.UUID Decoder & ValidatorDecode any UUID: version, variant, v1/v6/v7 timestamp and MAC node, plus bulk validation.Base64 to FileDecode Base64 or a data URI to a downloadable file; detects the real file type and previews it.File Encryption ToolEncrypt and decrypt any file with a password using AES-256-GCM, entirely in your browser.Passphrase GeneratorMake strong, memorable diceware passphrases from a 7,776-word list, with entropy in bits.CSR DecoderDecode a PEM certificate signing request: subject, SANs, key size, signature and CA readiness checks.Enigma Machine SimulatorEncrypt and decrypt with a virtual Enigma I, M3 or M4: rotors, rings, plugboard and lampboard.Hex Opacity CalculatorConvert opacity percent to a 2-digit HEX alpha code and full #RRGGBBAA color, with a 0-100% table.Playfair CipherEncrypt and decrypt Playfair ciphers from a keyword, with the 5x5 key square and every digraph step.Pwned Password CheckerCheck if a password appeared in data breaches; only 5 characters of its SHA-1 hash are sent.
See all 65 Encoders, Hashes & Crypto →