Tiny Online Tools logoTiny Online ToolssearchRechercher des outils…grid_viewTous les outils
Accueilchevron_rightOutils Developpeurchevron_rightJWT générateurJWT générateur

JWT générateur

Generate et sign JSON Web Tokens avec HMAC, or décoder any JWT.

keyGénérerlock_openDecode
warningSignature is not verified here — this tool only decodes the header and payload for inspection purposes.

Outils similaires

JSON validateur

JSON validateur

valider JSON syntax quickly.

HEX visionneuse

HEX visionneuse

View any file as a HEX dump avec offset, HEX bytes, et ASCII columns.

Text to Binary

Text to Binary

Convert text into binary code (0s and 1s) with per-character breakdown.

HEX vers RGB

HEX vers RGB

convertir HEX color codes vers RGB, HSL, HSV values avec a live color preview.

Superposer des images

Superposer des images

Assemblez deux images en placant une image de superposition sur une image de base avec position, echelle, opacite et mode de fusion reglables.

Découper une vidéo

Découper une vidéo

Coupez et rognez des clips vidéo à une heure de début et de fin précises dans votre navigateur.

Fusionner CSV

Fusionner CSV

Fusionnez plusieurs fichiers CSV en empilant les lignes ou en les joignant sur une colonne clé.

apps

Plus d'outils

Parcourez notre collection complète d'outils en ligne gratuits.

Génère & Décode JWTs for Authentication Testing

JSON Web Tokens (JWTs) are the standard for API authentication and authorization. Whether you're building an auth system, testing token flows, or debugging authentication issues, you need a way to quickly Crée and inspect JWTs without writing code.

This JWT Generator lets you Crée tokens with custom headers and payloads, sign them with HMAC secrets, and instantly inspect any JWT by decoding it. Test your authentication before deploying, verify token structure without extra tools, and debug token-related issues faster.

Génère Custom JWTs

Define your token in three parts:

Header: Standard JWT header fields identifying the token type and hashing algorithm. Edit the JSON to customize if needed, though defaults work for most cases.

Payload: The actual token data—user ID, claims, roles, expiration time, etc. Define whatever claims your application expects. The tool accepts any valid JSON.

Secret Key: The HMAC secret used to sign the token. This is crucial: use the same secret when validating tokens in your application. The tool never sends this anywhere—it stays in your navigateur.

Click Génère, and you instantly get a valid, signed JWT ready to use in testing.

Three HMAC Algorithms Supported

HS256 (HMAC-SHA-256): The most common choice. Balances security and performance.

HS384 (HMAC-SHA-384): Stronger hashing for higher security requirements.

HS512 (HMAC-SHA-512): Maximum security with SHA-512 hashing.

Choose based on your application's security needs.

Décode Any JWT

Have a JWT from an API response or log? Paste it in the Décode section and instantly see the Décoded header and payload. This is invaluable for:

  • Inspecting API Responses: Extract the JWT from an authentication response and see what claims it contains
  • Debugging Auth Issues: Check if a token has the expected user ID, roles, expiration time, etc.
  • Verifying Token Structure: Ensure your auth server is issuing tokens with the correct Formate
  • Token Analysis: See at a glance what data a token carries

Note: Decoding doesn't verify the signature—it just extracts and displays the data. This is safe for inspection but doesn't prove the token is valid.

Color-Coded Token Display

When you Génère a JWT, it's displayed with color coding showing the three segments:

  • Header segment in one color
  • Payload segment in another
  • Signature segment in a third

This makes it easy to spot which part is which and understand the token structure.

Common Testing Scenarios

Auth Flow Testing: Génère tokens with different payloads and test how your application handles them. Crée tokens with various expiration times, roles, or user IDs without needing a full auth server.

Bearer Token Validation: Génère a token, copy it, add it as a Bearer token to API requests, and verify your authorization middleware accepts it.

Token Claims Verification: Test that your application correctly extracts and uses claims from tokens by generating tokens with specific claim values and checking if your app processes them correctly.

Security Testing: Génère tokens with expired timestamps or invalid signatures (by using different secrets) to test how your app handles invalid tokens.

100% Navigateur-Based, Completely Secure

All JWT generation and decoding happens in your navigateur using the native Web Crypto API. Your secrets never leave your machine, and your Génèred tokens aren't sent anywhere. This is safe for testing with production secret values—they never touch an external server.

Copy & Use Immediately

Génèred JWTs copy with one click. Paste directly into API request headers or tool test fields without additional Formateting.