A worked example, rendered from real sample data. Sign in to run the tool on your own input.
{"sub":"1234567890","name":"John Doe","iat":1516239022}
my-secret-key
HS256Algorithm: HS256
Header: {"alg":"HS256","typ":"JWT"}
Payload: {"sub":"1234567890","name":"John Doe","iat":1516239022}
Size: 155 bytes (header 36 / payload 74 / signature 43)
Token:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.MRvO3fE0o9C-pZfd3pI0hMDDXihJfQa1XPQ-UAelzaI
Warnings:
- Secret is 13 bytes. RFC 7518 requires at least 32 bytes for HS256.
- No exp claim — this token never expires.
Encode a JWT token from header, payload, and secret. Part of the DevTools Surf developer suite. Browse more tools in the Security / Crypto collection.