1:"$Sreact.fragment" 2:I[79520,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js"],""] 3:I[22016,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js","/_next/static/chunks/0an3h71pfhg8p.js"],""] 4:I[15484,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js"],"ThemeToggle"] 5:I[39756,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js"],"default"] 6:I[37457,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js"],"default"] 12:I[68027,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js"],"default",1] :HL["/_next/static/chunks/21jludas8-0yk.css","style"] :HL["/_next/static/media/797e433ab948586e-s.p.0r6juujl39pe6.woff2","font",{"crossOrigin":"","type":"font/woff2"}] :HL["/_next/static/media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2","font",{"crossOrigin":"","type":"font/woff2"}] 0:{"P":null,"c":["","tools","jwt-generator"],"q":"","i":false,"f":[[["",{"children":["tools",{"children":[["slug","jwt-generator","d",null],{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",16],[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/21jludas8-0yk.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","script","script-0",{"src":"/_next/static/chunks/07d-w61p1a6it.js","async":true,"nonce":"$undefined"}],["$","script","script-1",{"src":"/_next/static/chunks/14mrh2-p_w84d.js","async":true,"nonce":"$undefined"}]],["$","html",null,{"lang":"en","className":"geist_a71539c9-module__T19VSG__variable geist_mono_8d43a2aa-module__8Li5zG__variable h-full antialiased","suppressHydrationWarning":true,"children":["$","body",null,{"className":"min-h-full flex flex-col","children":[["$","$L2",null,{"id":"theme-init","strategy":"beforeInteractive","children":"\n(function () {\n try {\n var stored = localStorage.getItem(\"theme\");\n var theme = stored === \"light\" || stored === \"dark\"\n ? stored\n : (window.matchMedia(\"(prefers-color-scheme: dark)\").matches ? \"dark\" : \"light\");\n document.documentElement.classList.toggle(\"dark\", theme === \"dark\");\n } catch (e) {}\n})();\n"}],["$","header",null,{"className":"border-b border-slate-200 dark:border-slate-800","children":["$","div",null,{"className":"mx-auto flex max-w-6xl flex-wrap items-center justify-between gap-4 px-4 py-4 sm:px-6","children":[["$","$L3",null,{"href":"/","className":"text-lg font-bold text-slate-900 dark:text-slate-100","children":"CodeScript"}],["$","nav",null,{"className":"flex flex-wrap items-center gap-x-5 gap-y-2 text-sm text-slate-600 dark:text-slate-400","children":[[["$","$L3","/tools",{"href":"/tools","className":"hover:text-indigo-600 dark:hover:text-indigo-400","children":"Tools"}],["$","$L3","/cheat-sheets",{"href":"/cheat-sheets","className":"hover:text-indigo-600 dark:hover:text-indigo-400","children":"Cheat Sheets"}],["$","$L3","/interview-questions",{"href":"/interview-questions","className":"hover:text-indigo-600 dark:hover:text-indigo-400","children":"Interview Questions"}],["$","$L3","/snippets",{"href":"/snippets","className":"hover:text-indigo-600 dark:hover:text-indigo-400","children":"Snippets"}],["$","$L3","/api-directory",{"href":"/api-directory","className":"hover:text-indigo-600 dark:hover:text-indigo-400","children":"API Directory"}],["$","$L3","/roadmaps",{"href":"/roadmaps","className":"hover:text-indigo-600 dark:hover:text-indigo-400","children":"Roadmaps"}]],["$","a",null,{"href":"https://blog.codescript.in","className":"hover:text-indigo-600 dark:hover:text-indigo-400","rel":"noopener","children":"Blog"}],["$","$L4",null,{}]]}]]}]}],["$","main",null,{"className":"flex-1","children":["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","footer",null,{"className":"mt-16 border-t border-slate-200 dark:border-slate-800","children":["$","div",null,{"className":"mx-auto max-w-6xl px-4 py-10 sm:px-6","children":["$L7","$L8","$L9","$La","$Lb"]}]}],"$Lc"]}]}]]}],{"children":["$Ld",{"children":["$Le",{"children":["$Lf",{},null,false,null]},null,false,"$@10"]},null,false,"$@10"]},null,false,null],"$L11",false]],"m":"$undefined","G":["$12",["$L13"]],"S":true,"h":null,"s":"$undefined","l":"$undefined","p":"$undefined","d":"$undefined","b":"hZXEtJmKBENpHYBRepoaY"} 15:I[97367,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js"],"OutletBoundary"] 16:"$Sreact.suspense" 19:I[97367,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js"],"ViewportBoundary"] 1b:I[97367,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js"],"MetadataBoundary"] 7:["$","p",null,{"className":"text-sm font-semibold text-slate-900 dark:text-slate-100","children":"CodeScript"}] 8:["$","p",null,{"className":"mt-1 text-sm text-slate-600 dark:text-slate-400","children":"Free developer tools that run entirely in your browser."}] 9:["$","div",null,{"className":"mt-8 grid grid-cols-2 gap-6 sm:grid-cols-4","children":[["$","$L3","json",{"href":"/tools#json","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"JSON Tools"}],["$","$L3","jwt",{"href":"/tools#jwt","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"JWT Tools"}],["$","$L3","base64",{"href":"/tools#base64","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"Base64 Tools"}],["$","$L3","uuid",{"href":"/tools#uuid","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"UUID Tools"}],["$","$L3","regex",{"href":"/tools#regex","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"Regex Tools"}],["$","$L3","sql",{"href":"/tools#sql","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"SQL Tools"}],["$","$L3","timestamp",{"href":"/tools#timestamp","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"Timestamp Tools"}],["$","$L3","hash",{"href":"/tools#hash","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"Hash Tools"}],["$","$L3","password",{"href":"/tools#password","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"Password Tools"}],["$","$L3","qrcode",{"href":"/tools#qrcode","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"QR Code Tools"}],["$","$L3","text",{"href":"/tools#text","className":"text-sm text-slate-600 hover:text-indigo-600 dark:text-slate-400 dark:hover:text-indigo-400","children":"Text Tools"}]]}] a:["$","div",null,{"className":"mt-8 flex flex-wrap gap-x-5 gap-y-2 text-sm text-slate-500 dark:text-slate-500","children":[["$","a",null,{"href":"https://blog.codescript.in","rel":"noopener","children":"Blog"}],["$","$L3",null,{"href":"/cheat-sheets","children":"Cheat Sheets"}],["$","$L3",null,{"href":"/interview-questions","children":"Interview Questions"}],["$","$L3",null,{"href":"/snippets","children":"Snippets"}],["$","$L3",null,{"href":"/api-directory","children":"API Directory"}],["$","$L3",null,{"href":"/roadmaps","children":"Roadmaps"}]]}] b:["$","p",null,{"className":"mt-8 text-xs text-slate-400 dark:text-slate-600","children":["© ",2026," ","CodeScript",". All tools run locally in your browser."]}] c:["$","script",null,{"async":true,"src":"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1325533494418823","crossOrigin":"anonymous"}] d:["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}] e:["$","$1","c",{"children":[null,["$","$L5",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L6",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}] f:["$","$1","c",{"children":["$L14",[["$","script","script-0",{"src":"/_next/static/chunks/0an3h71pfhg8p.js","async":true,"nonce":"$undefined"}]],["$","$L15",null,{"children":["$","$16",null,{"name":"Next.MetadataOutlet","children":"$@17"}]}]]}] 18:[] 10:"$W18" 11:["$","$1","h",{"children":[null,["$","$L19",null,{"children":"$L1a"}],["$","div",null,{"hidden":true,"children":["$","$L1b",null,{"children":["$","$16",null,{"name":"Next.Metadata","children":"$L1c"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}] 13:["$","link","0",{"rel":"stylesheet","href":"/_next/static/chunks/21jludas8-0yk.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}] 1d:I[48431,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js","/_next/static/chunks/0an3h71pfhg8p.js"],"ToolRenderer"] 1e:I[4128,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js","/_next/static/chunks/0an3h71pfhg8p.js"],"FaqAccordion"] 14:["$","div",null,{"className":"mx-auto max-w-4xl px-4 py-10 sm:px-6","children":[["$","script",null,{"type":"application/ld+json","dangerouslySetInnerHTML":{"__html":"{\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",\"mainEntity\":[{\"@type\":\"Question\",\"name\":\"Is my secret sent anywhere?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"No. Signing uses the browser's native SubtleCrypto API entirely client-side — your secret and payload never leave your device.\"}},{\"@type\":\"Question\",\"name\":\"Why use Web Crypto instead of a JS JWT library?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Most popular JWT libraries (like jsonwebtoken) depend on Node's crypto module and aren't safe or intended to run in the browser. Web Crypto's SubtleCrypto HMAC API covers HS256 signing and verification natively.\"}}]}"}}],["$","nav",null,{"className":"mb-4 flex items-center gap-1.5 text-sm text-slate-500 dark:text-slate-400","children":[["$","$L3",null,{"href":"/","className":"hover:text-indigo-600 dark:hover:text-indigo-400","children":"Home"}],["$","span",null,{"children":"/"}],["$","$L3",null,{"href":"/tools","className":"hover:text-indigo-600 dark:hover:text-indigo-400","children":"Tools"}],[["$","span",null,{"children":"/"}],["$","span",null,{"children":"JWT Tools"}]]]}],["$","h1",null,{"className":"text-2xl font-bold text-slate-900 sm:text-3xl dark:text-slate-100","children":"JWT Generator"}],["$","p",null,{"className":"mt-2 text-slate-600 dark:text-slate-400","children":"Create and sign an HS256 JWT, or verify a token's signature."}],["$","div",null,{"className":"mt-6","children":["$","$L1d",null,{"componentKey":"jwt-generator"}]}],["$","section",null,{"className":"mt-12 space-y-3","children":[["$","h2",null,{"className":"text-lg font-semibold text-slate-900 dark:text-slate-100","children":"What it does"}],["$","p",null,{"className":"text-slate-600 dark:text-slate-400","children":"Enter a JSON payload and a secret, and this tool signs a JWT using HMAC-SHA256 (HS256) via your browser's native Web Crypto API. It can also verify whether an existing HS256 token's signature matches a given secret."}]]}],["$","section",null,{"className":"mt-10 space-y-3","children":[["$","h2",null,{"className":"text-lg font-semibold text-slate-900 dark:text-slate-100","children":"Common errors"}],["$","ul",null,{"className":"space-y-3","children":[["$","li","Only HS256 is supported",{"children":[["$","p",null,{"className":"font-medium text-slate-800 dark:text-slate-200","children":"Only HS256 is supported"}],["$","p",null,{"className":"text-sm text-slate-600 dark:text-slate-400","children":"This generator signs and verifies HS256 (HMAC) tokens only. RS256/ES256 (asymmetric) tokens require a private/public key pair and aren't supported here."}]]}]]}]]}],"$undefined",["$","section",null,{"className":"mt-10 space-y-3","children":[["$","h2",null,{"className":"text-lg font-semibold text-slate-900 dark:text-slate-100","children":"FAQ"}],["$","$L1e",null,{"faqs":[{"question":"Is my secret sent anywhere?","answer":"No. Signing uses the browser's native SubtleCrypto API entirely client-side — your secret and payload never leave your device."},{"question":"Why use Web Crypto instead of a JS JWT library?","answer":"Most popular JWT libraries (like jsonwebtoken) depend on Node's crypto module and aren't safe or intended to run in the browser. Web Crypto's SubtleCrypto HMAC API covers HS256 signing and verification natively."}]}]]}],["$","section",null,{"className":"mt-10 space-y-3","children":[["$","h2",null,{"className":"text-lg font-semibold text-slate-900 dark:text-slate-100","children":"Related tools"}],["$","div",null,{"className":"grid grid-cols-1 gap-3 sm:grid-cols-2","children":[["$","$L3","jwt-decoder",{"href":"/tools/jwt-decoder","className":"rounded-lg border border-slate-200 p-4 transition-colors hover:border-indigo-300 hover:bg-indigo-50/50 dark:border-slate-800 dark:hover:border-indigo-700 dark:hover:bg-indigo-950/30","children":["$L1f","$L20"]}],"$L21"]}]]}],false]}] 1f:["$","p",null,{"className":"font-medium text-slate-900 dark:text-slate-100","children":"JWT Decoder"}] 20:["$","p",null,{"className":"mt-1 text-sm text-slate-600 dark:text-slate-400","children":"Decode a JWT's header and payload."}] 21:["$","$L3","hash-generator",{"href":"/tools/hash-generator","className":"rounded-lg border border-slate-200 p-4 transition-colors hover:border-indigo-300 hover:bg-indigo-50/50 dark:border-slate-800 dark:hover:border-indigo-700 dark:hover:bg-indigo-950/30","children":[["$","p",null,{"className":"font-medium text-slate-900 dark:text-slate-100","children":"Hash Generator"}],["$","p",null,{"className":"mt-1 text-sm text-slate-600 dark:text-slate-400","children":"Generate MD5 and SHA family hashes from text."}]]}] 1a:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] 22:I[27201,["/_next/static/chunks/07d-w61p1a6it.js","/_next/static/chunks/14mrh2-p_w84d.js"],"IconMark"] 17:null 1c:[["$","title","0",{"children":"JWT Generator – Create & Sign HS256 JSON Web Tokens Online | CodeScript"}],["$","meta","1",{"name":"description","content":"Generate and sign a JWT using HS256 with your own header, payload, and secret — or verify an existing HS256 token's signature. Runs entirely in your browser."}],["$","meta","2",{"name":"keywords","content":"jwt generator,create jwt,sign jwt,hs256 jwt"}],["$","link","3",{"rel":"canonical","href":"https://codescript.in/tools/jwt-generator"}],["$","meta","4",{"property":"og:title","content":"JWT Generator – Create & Sign HS256 JSON Web Tokens Online"}],["$","meta","5",{"property":"og:description","content":"Generate and sign a JWT using HS256 with your own header, payload, and secret — or verify an existing HS256 token's signature. Runs entirely in your browser."}],["$","meta","6",{"property":"og:url","content":"https://codescript.in/tools/jwt-generator"}],["$","meta","7",{"property":"og:site_name","content":"CodeScript"}],["$","meta","8",{"property":"og:type","content":"website"}],["$","meta","9",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","10",{"name":"twitter:title","content":"JWT Generator – Create & Sign HS256 JSON Web Tokens Online"}],["$","meta","11",{"name":"twitter:description","content":"Generate and sign a JWT using HS256 with your own header, payload, and secret — or verify an existing HS256 token's signature. Runs entirely in your browser."}],["$","link","12",{"rel":"icon","href":"/favicon.ico?favicon.01zq6kj0bxv_0.ico","sizes":"48x48","type":"image/x-icon"}],["$","$L22","13",{}]]