PHP Encoder

Anti-Theft Source Protection & Obfuscation

Back to Encoder Dashboard
RFC 7519 JSON Web Tokens
Cryptographic Token Inspector

JWT Encoder & Decoder

Inspect, decode, and debug JSON Web Tokens (JWT) in real-time. Verify signatures using HMAC SHA-256, SHA-384, or SHA-512, or generate custom signed tokens with claim timestamps and expiration validation.

Presets:
Malformed JWT Format
Token Structure:
..
Header Payload Signature

Signature Verification

Algorithm:

Header: Algorithm & Token Type


            

Payload: Data & Claims


            

Standard Claims Validation

Subject (sub)
Issuer (iss)
Issued At (iat)
Expiration Time (exp)

Signature Configuration

Add Expiry:

Generated Signed Token

Breakdown:
..

CLI & JSON API Endpoint

Decode or verify JWT tokens directly from the shell or backend applications:

curl -s -X POST "https://encoder.cpanelcentral.com/jwt.php" \
  -d "action=decode" \
  -d "token=YOUR_JWT_HERE" | jq .data.payload

JSON Web Token (JWT) Security & Mechanics

1. Header (JOSE)

Specifies the cryptographic algorithm (alg) used to sign the token (e.g. HS256) and the token type (typ: JWT).

2. Payload (Claims)

Contains identity claims such as subject (sub), expiration (exp), and arbitrary user data.

3. Cryptographic Signature

Computed by hashing Base64URL(Header) + "." + Base64URL(Payload) using your private secret key to prevent client tampering.

Security Notice:

JWT payloads are Base64URL encoded, not encrypted. Anyone with access to the token string can read its contents. Never place sensitive plaintext credentials, passwords, or credit card numbers inside JWT payload claims.