🔑 JWT Decoder

Decode and inspect JWT tokens instantly — view header, payload, and signature. Verify signatures with your secret. Free online JWT decoder — nothing sent to any server.

How to Use

1

Paste your JWT

Copy your JWT token (starting with eyJ) and paste it into the input field.

2

Click Decode

Press Decode to instantly split and decode all three parts: header, payload, and signature.

3

Inspect the token

Read the decoded JSON, check expiration dates, algorithm, and any custom claims in the payload.

Frequently Asked Questions

What is a JWT? +
A JSON Web Token (JWT) is a compact, URL-safe token used for authentication and information exchange. It consists of three Base64URL-encoded parts separated by dots: Header.Payload.Signature.
Is it safe to paste my JWT here? +
Yes. This tool runs 100% in your browser — your token is never sent to any server. However, never share JWTs containing sensitive data in public forums or untrusted tools.
Can this tool verify the JWT signature? +
No. Signature verification requires the secret key or public key used to sign the token, which only your server knows. This tool decodes and displays the token contents only.
What does "exp" mean in the payload? +
"exp" is the expiration time as a Unix timestamp (seconds since Jan 1, 1970). This tool automatically converts it to a human-readable date and shows whether the token has expired.
What is the difference between "iat" and "nbf"? +
"iat" (issued at) is when the token was created. "nbf" (not before) is the earliest time the token is valid. Both are Unix timestamps.


Tam Rehber: JWT Decoder

JWT Nedir ve Neden Önemlidir?

JSON Web Token (JWT), RFC 7519'da standartlaştırılmış, durumsuz kimlik doğrulama için tasarlanmış kompakt bir token formatıdır. Tek sayfalı uygulamalarda, mobil API'lerde ve mikro servis mimarilerinde baskın kimlik doğrulama mekanizmasıdır çünkü sunucu tarafında oturum deposuna ihtiyaç duymaz.

JWT, nokta ile ayrılmış üç Base64url kodlu bölüme sahiptir: header.payload.signature. Header algoritmayı belirtir. Payload, kullanıcı kimliği ve izinler gibi iddiaları içerir. Signature, token'ın değiştirilmediğini kanıtlayan kriptografik imzadır.

Kritik ayrım: decode etmek doğrulama değildir. Herkes JWT'nin header ve payload bölümlerini okuyabilir — yalnızca Base64url kodludur, şifreli değildir. İmza doğrulaması (sunucu tarafında) özgünlüğü kanıtlar.

Nasıl Kullanılır?

  1. JWT'nizi yapıştırın (eyJ… ile başlayan dize).
  2. Decode'a tıklayın — üç bölüm ayrıştırılır.
  3. Header'ı okuyun — algoritmayı kontrol edin (alg).
  4. Payload'ı okuyunexp (süresi dolmuş mu?), iss, özel iddialar.

Kod Örnekleri

// Kütüphanesiz decode (istemci tarafı, doğrulama olmadan)
function jwtDecode(token) {
  const [h, p] = token.split('.');
  const coz = (b64url) => JSON.parse(
    atob(b64url.replace(/-/g, '+').replace(/_/g, '/'))
  );
  return { header: coz(h), payload: coz(p) };
}

// Node.js: 'jose' kütüphanesiyle doğrulama (önerilen)
import { jwtVerify } from 'jose';
const gizli = new TextEncoder().encode('256-bit-gizli');
const { payload } = await jwtVerify(token, gizli, {
  issuer: 'https://auth.example.com',
  audience: 'https://api.example.com',
});

// Sona erme kontrolü
const surelidiMi = (p) => Date.now() >= p.exp * 1000;

Yaygın Hatalar

İpuçları

🧰 50+ Tools