Skip to content

JWT Decoder

Decode the header and the payload of a JSON Web Token. The page does not check the signature, so a decoded payload is not proof that the token is genuine.

Result

Paste a token

How to Use

  1. 1 Paste a token with two dots.
  2. 2 Choose Decode the token.
  3. 3 Read the JSON. The signature is not verified.

Example Output

  • A token whose payload is {"sub":"1234567890"} shows that JSON. The signature is still not verified.

About This Tool

A token has three base64url parts separated by dots. The page reads the first two as JSON and leaves the third unread as a signature check.

Reading a Token Without Trusting It

A token on this page is three pieces of text separated by two dots. The first piece is the header. The second is the payload. The third is left unread as a signature check. The page base64url-decodes the first two pieces, requires each of them to be JSON, and pretty-prints that JSON. It then says, in the result itself, The signature was not checked. A labeled line repeats the same fact as Not checked. The signature is not checked. A decoded payload is not proof the token is genuine.

The sample header is {"alg":"none","typ":"JWT"} and the sample payload is {"sub":"1234567890"}. Those two objects are what the pretty-printed result should show when you paste the matching parts. The header value none is only a string inside the JSON. It is not a decision by this page to skip a check it would otherwise have performed. This page never performs the check. A header that names some other algorithm is still only decoded. The payload string 1234567890 is a JSON string in quotes, not a number the page verified against an account.

Paste eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJzdWIiOiIxMjM0NTY3ODkwIn0.x and choose Decode the token. The headline is Decoded. The text shows Header, then the pretty-printed header, then Payload, then the pretty-printed payload, then the sentence The signature was not checked. The third part in that paste is the single character x. It is not examined. Replacing x with a long string, or leaving a different third part, does not turn the decode into proof. A decoded payload is not proof the token is genuine.

A string with no dots, one dot, or three dots is rejected. The message is Enter a token with two dots and three parts. The same sentence is used when the whole token is longer than 4000 characters. The field starts empty, with the waiting line Paste a token. Reset clears the field. Copy result copies the text, including the sentence that the signature was not checked. Keep that sentence with anything you copy. If you copy only the payload and drop the sentence, you have removed the warning the page printed.

What Decode Means Here

Decode, on this page, means split, turn the first two parts back into text, and print them as formatted JSON. It does not mean authenticate, authorize, or identify a person. The header object and the payload object are shown because they were inside the token text. Their presence shows that those bytes decoded. It does not show that a signer produced them, that they are current, or that any claim in them is true. The signature is not checked. A decoded payload is not proof the token is genuine.

The pretty-printed header for the sample has alg set to none and typ set to JWT. The pretty-printed payload has sub set to 1234567890 in quotes. The page writes slashes without extra escape sequences when a string contains a slash. It does not add claims you did not paste. It does not remove claims. It does not look up the subject. The third part can be any text, including text that would fail a real signature check elsewhere, and this page will still report Not checked. That report is the result. There is no second mode that verifies.

How the Three Parts Are Read

The field is trimmed at the ends and split on every dot. Three parts are required. Each of the first two parts is treated as base64url: the characters - and _ are put back into the usual base64 alphabet, padding is added when the length needs it, and the bytes are decoded. Those bytes must be a JSON object. A JSON array also passes the structure check the decoder uses, because it is looking for a decoded array of fields, but a bare JSON string, a bare number, true, false, or null is rejected. The header failure reads Header is not a JSON object. The payload failure reads Payload is not a JSON object. If the bytes are not valid base64url, the message names the part: Header is not base64url, or Payload is not base64url.

After both parts decode, the page pretty-prints each object and appends The signature was not checked. Compacting that JSON afterward is a different tool and still would not verify anything. The JSON Minifier parses one JSON value and writes it again without insignificant space, so {"a": 1} becomes {"a":1}. It rejects broken JSON instead of trimming blindly. You could minify a payload you already decoded, if you wanted a compact value. That compact value would remain an unverified decode. The signature is not checked on this page either before or after you minify.

Failures That Stop the Decode

Enter a token with two dots and three parts is the shape error. It covers a blank field, a sentence with no dots, a value with a single dot, a value with three or more dots, and a token longer than 4000 characters. The message does not say which of those you hit. Count the dots. If you see two dots and the token is still refused, count the characters. If the shape is legal and a part still fails, read the part name in the message. Header is not base64url means the first part did not decode as base64url. Payload is not a JSON object means the second part decoded to text that was not a JSON object the page accepts.

The page will not repair a missing dot, a stripped character, or a payload that is a JSON string instead of an object. It will not fetch a key, and it will not ask you for a secret. There is no field for a password or a public key because no check is performed. Adding a key in the third part does not change that. The third part is not the place where you prove the token. The signature is not checked. A decoded payload is not proof the token is genuine, even when every part looks tidy and the header says typ is JWT.

The Sample Token, Read Aloud

Take the token eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJzdWIiOiIxMjM0NTY3ODkwIn0.x. Two dots. Three parts. Decode it. Under Header you should be able to read alg as none and typ as JWT. Under Payload you should read sub as 1234567890 with quotes around that value in the JSON. The last line of the text is The signature was not checked. The Signature line is Not checked. Change the final x to the word unsigned and decode again. The header and payload stay the same. The warning stays. The new third part was not checked either. Delete the final part so only one dot remains. The page refuses the paste with Enter a token with two dots and three parts.

The payload is one JSON object, not a table. Turning objects into rows is a different conversion, and it would still not verify a token. The JSON to CSV Converter turns a JSON array of objects into CSV, so [{"a":1,"b":2}] becomes a header row a,b and a data row 1,2. Download CSV saves those rows. A single payload object is not that array, and a CSV row made from claims would not be evidence that a signer produced them. Decode here only to see the JSON. Treat the warning sentence as part of what you saw.

Limits of an Unverified Decode

The page does not expire a token, and it does not understand claim names. If a payload contains a time, a role, or an email address, those are strings or numbers inside JSON. The page does not compare a time with now. It does not connect to an identity system. It does not tell you the token is expired, active, forged, or safe to accept. The signature is not checked. A decoded payload is not proof the token is genuine. Anyone can build three base64url parts separated by dots. This page will pretty-print the first two if they are JSON and then print the warning.

Mistakes That Over-Read a Decode

The serious mistake is to treat a successful decode as authentication. The headline Decoded means the first two parts became JSON. It does not mean the third part matched a key. The signature is not checked. A decoded payload is not proof the token is genuine. A second mistake is to trust the sample because alg is none. none is the algorithm name written in the sample header. It is not a stamp of approval, and it is not a special verified state. A third mistake is to drop the warning when you copy, then later read the payload as if the warning had never been printed. A fourth mistake is to paste a token with a space in the middle. The space is not trimmed out of the middle. The parts then fail to decode, or the dot count fails, depending on what you pasted.

Base64url is not a change of numeric base. The Number Base Converter converts a whole number from one base to another, with bases from 2 to 36, and digits above 9 use the letters A through Z. 255 in base 10 is FF in base 16. That page does not accept a decimal point, a fraction, or a leading minus. It will not decode a token, and this page will not turn a payload into another base. If you need FF from 255, use the base converter on the number. If you need to see claims, decode here, and keep the unverified warning with the JSON.

When a Decode Is Still Useful

A decode is useful when you want to see what a token says, in the same way you might unfold a note that has not been signed in front of you. You can check whether the payload is the JSON you expected to generate, whether a claim name is spelled the way you think, and whether the header names the type JWT. You can compare two pastes and see that the payloads differ. You cannot conclude that either paste was issued by a system you trust. The signature is not checked. A decoded payload is not proof the token is genuine. Use a verifier that has the right key when you need that proof. This page is the place to read the JSON, not the place to accept the token.

How to Read the Printed JSON

Read the result from the top. The word Header introduces the first object. In the sample, alg is none and typ is JWT. Then the word Payload introduces the second object. In the sample, sub is the string 1234567890. Then the sentence The signature was not checked stands on its own. The Signature label says Not checked. Those last two readings are not footnotes. They are the result of the third part. If either of them is missing from a screenshot you saved, the screenshot is incomplete. A decoded payload is not proof the token is genuine, and the page says so in the text you are supposed to read with the JSON.

Claims are not identifiers the page generated. If a payload happens to contain an id-shaped string, that string was in the token you pasted. The UUID Generator generates version-4 UUIDs, and a seed repeats the same identifiers. It does not decode three dotted parts, and a UUID it draws is not a signature. Use it when you need a fresh identifier. Use this page when you already have a token and you want the header and payload printed, with the signature left unchecked.

Before You Rely on Anything You Saw

Say the limit out loud once before you leave the result: the signature is not checked, and a decoded payload is not proof the token is genuine. Then look back at the sample and confirm you can still see none, JWT, and the subject string, plus that sentence. If you decoded some other token, confirm the warning is still the last line of the text and the Signature line is still Not checked. If a tool or a note somewhere tells you this decode proved the token, that note is wrong about this page. Nothing in the headline Decoded overrides the sentence under the JSON.

Checks That Should Fail Closed

Decode the sample token and read alg none, typ JWT, sub 1234567890, the sentence The signature was not checked, and the line Not checked. Change only the third part and confirm the JSON stays and the warning stays. Remove a dot and confirm Enter a token with two dots and three parts. Paste a header part that is not base64url and confirm the header message. Paste a second part that decodes to a bare JSON string and confirm Payload is not a JSON object. Paste more than 4000 characters with two dots and confirm the shape message. None of these checks is a verification success. The successful decode is still an unchecked signature.

Digits in a payload are not a binary place-value lesson. The Binary to Decimal Converter turns binary into decimal, and 1010 is 10. Only the digits 0 and 1 are accepted. That conversion does not decode a token, and this page does not interpret the subject string as binary. Use the binary converter for a string of 0s and 1s. Use this decoder to print header and payload JSON, and leave with the fact that the signature was not checked.

Frequently Asked Questions

Does this page check the signature?

No. The signature is not checked. The result says The signature was not checked, and the Signature line says Not checked. A decoded payload is not proof the token is genuine.

What does the sample header and payload show?

The header is {"alg":"none","typ":"JWT"} and the payload is {"sub":"1234567890"}. The page pretty-prints that JSON. alg none is not a verification.

What if the token does not have two dots?

It is rejected with Enter a token with two dots and three parts. One dot, three dots, a blank field, and a token longer than 4000 characters use that same sentence.

Is a decoded payload proof the token is genuine?

No. A decoded payload is not proof the token is genuine. Anyone can assemble three parts. This page only prints the first two as JSON and leaves the third unchecked.

What if a part is not base64url?

The page names the part. Header is not base64url, or Payload is not base64url. It does not guess the missing characters.

What if the payload is not a JSON object?

The page says Payload is not a JSON object. A bare JSON string or number is refused. The header has the matching Header message.

Does alg none mean the token was accepted?

No. none is only the algorithm string in the sample header. The signature is not checked for none or for any other alg value.

What does Copy result include?

The header JSON, the payload JSON, and the sentence The signature was not checked. Keep that sentence with the copy. Reset clears the field.