Private / No Upload

Fix invalid JWT token format

A JWT should usually contain three dot-separated segments: header, payload, and signature. Decode errors often come from missing segments or malformed Base64URL text.

Runs in your browser

HappyFormatter tools process pasted snippets client-side for quick, privacy-first developer workflows.

No upload

HappyFormatter tools process pasted snippets client-side for quick, privacy-first developer workflows.

No account

HappyFormatter tools process pasted snippets client-side for quick, privacy-first developer workflows.

Fix steps

  1. 1 Remove the Bearer prefix if present.
  2. 2 Check that the token has dot-separated segments.
  3. 3 Decode header and payload locally; verify signatures server-side.

Invalid JWT

This has only one segment.

eyJhbGciOiJIUzI1NiJ9

Output

Missing payload segment

JWT shape

A signed JWT has header, payload, and signature segments.

header.payload.signature

Output

Three segments

Related pages