🎫 JWT Dekoder

Dekodirajte JSON Web Tokene (JWT) kako biste pregledali zaglavlje (header), podatke (payload) i potpis.

Što je to JSON Web Token (JWT)?

JWT je kompaktan, URL-siguran način sigurnog prijenosa informacija (potraživanja/claims) između dvije strane u formatu JSON objekta.

Struktura JWT-a

  • Zaglavlje: Specificira kriptografski potpisni algoritam. Contains the signing algorithm (e.g., HS256, RS256) and token type.
  • Podaci (Payload): Nosi aplikativne tvrdnje i podatke. Contains claims — statements about the user and additional metadata.
  • Potpis: Potvrđuje cjelovitost i autentičnost tokena. Verifies the token hasn't been tampered with. Created using the header, payload, and a secret key.

Često Postavljana Pitanja

Je li sigurno ovdje dekodirati JWT?

Da! Ovaj alat radi 100% lokalno u vašem pregledniku koristeći JavaScript. Vaš token nikada ne napušta vaš uređaj niti se šalje na mrežu.

Što znači istek tokena?

U podacima (payloadu), polje 'exp' označava vremensku oznaku (timestamp) kada certifikat prestaje vrijediti, nakon čega ga poslužitelj mora odbiti.

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.