36 chars · 1 line
Needs attention
36 chars · 1 line
Needs attention
JWT header encoding error
JWT header bytes are encoded with the URL-safe Base64 alphabet. Characters outside that alphabet, invalid lengths, whitespace, padding, or non-canonical trailing bits cause this decoder to reject the header before JSON parsing. This tool is free to use. No account or payment is required.
Last updated
The compact token alphabet uses URL-safe characters and normally omits padding. This decoder additionally checks canonical encoding so alternate bit representations are not silently accepted.
The dollar sign is not part of the Base64URL alphabet.
bad$eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9Common questions
JWT compact segments use Base64URL conventions. The alphabets and padding expectations are not identical.
No. The decoded bytes must also be valid UTF-8 JSON representing an object.
Usually no. Get a correctly issued token, because changing encoded segments changes the bytes covered by its signature.
Debugging a specific JWT issue? Browse JWT troubleshooting.