🎫 Dekoder JWT

Dekoduj JSON Web Tokeny (JWT), aby przejrzeć nagłówek, ładunek i podpis.

Czym jest JSON Web Token (JWT)?

JWT to otwarty standard umożliwiający bezpieczne i zwięzłe przesyłanie oświadczeń (claims) z uwierzytelnieniem pomiędzy stronami.

Struktura JWT

  • Nagłówek: Odpowiada za wskazanie użytego algorytmu. Contains the signing algorithm (e.g., HS256, RS256) and token type.
  • Ładunek: Zwiera wartości pożądanych roszczeń. Contains claims — statements about the user and additional metadata.
  • Podpis: Blokuje szanse zmodyfikowania całości. Verifies the token hasn't been tampered with. Created using the header, payload, and a secret key.

Zapytania Częste

Czy wpisanie tokena w tej usłudze nie stwarza groźby przejęcia?

Bezpieczeństwo wynika z realizacji dekodowania po stronie Twojej Przeglądarki na kanwie skryptów, bez transportu zewnętrznego.

Co oznaczają tokeny wygasłe (expired)?

Rekord wskazujący czas ważności nie zezwoli serwerom na poprawną weryfikację. Użytkownik wezwany jest po odnowienie.

Decodes JSON Web Tokens showing header, payload, and signature without requiring the secret key, for debugging auth flows.

Key Facts

  • Standardized in RFC 7519 (2015)
  • 80%+ of modern APIs use JWT
  • Three parts separated by dots (.)
  • Common algorithms: HS256, RS256

Frequently Asked Questions

What is a JWT?

Compact, URL-safe token with header (algorithm), payload (claims), and signature for API authentication.

Is decoding JWT safe?

Yes — payload is base64-encoded, not encrypted. Security is in signature verification, not content hiding.

What are JWT claims?

Statements about user: iss (issuer), sub (subject), exp (expiration), iat (issued at), aud (audience).

How long should JWT last?

Access tokens: 15-30 min. Refresh tokens: 7-30 days. Short-lived limits damage if compromised.