पेलोड और सीक्रेट से HS256 JSON Web Token बनाएं और साइन करें, पूरी तरह आपके ब्राउज़र में।
JWT Generator का उपयोग कैसे करें
payload को JSON ऑब्जेक्ट के रूप में संपादित करें।
अपना HS256 सीक्रेट दर्ज करें।
जनरेट करें और साइन किया हुआ टोकन कॉपी करें।
A JWT generator that builds and signs JSON Web Tokens from your payload and secret, entirely in your browser using the Web Crypto API. It pairs with the JWT decoder, which inspects an existing token.
A JWT has three parts separated by dots: a header, a payload of claims, and a signature, each Base64url encoded. The signature is what makes the token trustworthy: it proves the payload has not been altered and was issued by someone who holds the secret.
This tool signs with HS256, that is HMAC using SHA-256, the most common symmetric JWT algorithm. The same secret both signs and verifies the token, so it must be kept private on the server.
For HS256, use a long, random secret. A short or guessable secret undermines the whole token, since anyone who guesses it can mint valid tokens of their own.
An important point about JWTs: the payload is only encoded, not encrypted. Anyone with the token can read its claims by Base64-decoding them, so never put passwords or sensitive data in a JWT. The signature stops tampering, it does not provide secrecy.
Because signing happens locally, your secret and payload never leave your device. Even so, avoid pasting real production secrets on a shared or public computer.
अक्सर पूछे जाने वाले सवाल
HS256 (HMAC with SHA-256), सबसे सामान्य सिमेट्रिक JWT algorithm, Web Crypto API के साथ आपके ब्राउज़र में साइन किया गया।
नहीं। साइनिंग पूरी तरह आपके ब्राउज़र में होती है, इसलिए सीक्रेट और payload कभी आपके डिवाइस से नहीं जाते। फिर भी, साझा मशीनों पर असली प्रोडक्शन सीक्रेट से बचें।
हां, मौजूदा टोकन के हेडर और payload का निरीक्षण करने के लिए JWT decoder टूल उपयोग करें।
इस टूल को एम्बेड करें
इस टूल को अपनी वेबसाइट में जोड़ें। नीचे दिया स्निपेट कॉपी करें; यह अपने आप अपडेट रहता है।
<iframe src="https://monu.tools/embed/hi/jwt-generator" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>संबंधित टूल
HTTP स्टेटस कोड और उनके अर्थ खोजें और देखें, 1xx से 5xx तक।
.env फ़ाइल को JSON में और JSON को वापस .env में बदलें, दोनों दिशाओं में, पूरी तरह आपके ब्राउज़र में।
SHA-1, SHA-256, SHA-384 या SHA-512 का उपयोग करके संदेश और सीक्रेट key के लिए HMAC जनरेट करें, आपके ब्राउज़र में।
bcrypt से password hash करें और bcrypt hash के विरुद्ध password सत्यापित करें, पूरी तरह आपके ब्राउज़र में।