UTILSBOX⚡ALL TOOLS54+
JSON.FORMATHub of five tools: format, validate, minify, convert to XML, and compare two JSON documents.//REGEX.TESTERReal-time regular expressions tester, cheatsheet, debugger and replacer.//PDF.SUITEMerge, split, extract text, rotate and convert PDF pages to images.//IMAGE.STUDIOIn-browser photo editor: crop, resize, filters, WebP/PNG and Base64 encoder.//HTML.BEAUTIFYHTML code beautifier, production minifier and entity encoder.//CSS.MINIFYCSS code formatter, production stylesheet minifier and CSS to SCSS converter.//SQL.FORMATTERSQL query beautifier, dialect translator (Postgres/MySQL) and minifier.//SVG.EXCALIDRAWInteractive vector visual editor powered by Excalidraw and SVG formatter.//TEXT.DIFFWord counter, reading time estimator and dual-text diff comparator.//YAML.CONVERTYAML & JSON bi-directional validator and formatter with syntax checking.//XML.PARSERXML document formatter, tree inspector and XML to JSON converter.//GRAPHQL.STUDIOGraphQL query & SDL formatter, minifier, AST field sorter and validator.//BASE64.CODECBase64 and URL-Safe encoder / decoder with full UTF-8 verification.//PASSWORD.GENCryptographically secure random password and entropy strength generator.//URL.STUDIO8-tool URL suite: encode, decode, validator, component parser and builder.//QR.STUDIOCustom QR code generator with embedded logos, colors, gradients and shapes.//ASCII.EXPLORERInteractive ASCII 0-255 table, Alt keyboard codes and CP437 symbols.//KEYCODES.LIVELive KeyboardEvent detector and JavaScript keycodes cheat sheet.//JWT.DEBUGGERJWT token decoder, claims inspector and Web Crypto signature verification.//BINARY.CODECBidirectional text to binary converter with digital rain and ASCII table.//CHARTS.STUDIOInteractive chart generator (bars, lines, pie, scatter) from CSV data.//UUID.V7Bulk generator for UUID v4, time-ordered v7, v1 and live UUID validator.//CSV.JSONBi-directional CSV to JSON converter with custom delimiters & table grid.//COLORS.STUDIOHEX/RGB/HSL/CMYK converter, palette harmonies and WCAG 2.1 contrast tester.//SEO.METASEO Meta Tags, Open Graph cards and real-time Google SERP card preview.//SCHEMA.JSONLDSchema.org JSON-LD structured data generator for Google Rich Snippets.//SITEMAP.XMLStandard XML Sitemap generator (Protocol 0.9) for Google Search Console.//ROBOTS.TXTRobots.txt generator, AI scraper blocking presets and live URL rule tester.//FAKE.DATASynthetic mock data generator: export records to JSON, CSV, SQL and TypeScript.//CLOCK.WORLDReal-time world clock with 3D holographic globe and 174 country timezones.//DATE.CALCDays between dates, exact age, business days, Unix timestamp and cron parser.//CALC.SUITESuite of 56+ online calculators: percentage, mortgage, loan, VAT, BMI & salary.//JSON.FORMATHub of five tools: format, validate, minify, convert to XML, and compare two JSON documents.//REGEX.TESTERReal-time regular expressions tester, cheatsheet, debugger and replacer.//PDF.SUITEMerge, split, extract text, rotate and convert PDF pages to images.//IMAGE.STUDIOIn-browser photo editor: crop, resize, filters, WebP/PNG and Base64 encoder.//HTML.BEAUTIFYHTML code beautifier, production minifier and entity encoder.//CSS.MINIFYCSS code formatter, production stylesheet minifier and CSS to SCSS converter.//SQL.FORMATTERSQL query beautifier, dialect translator (Postgres/MySQL) and minifier.//SVG.EXCALIDRAWInteractive vector visual editor powered by Excalidraw and SVG formatter.//TEXT.DIFFWord counter, reading time estimator and dual-text diff comparator.//YAML.CONVERTYAML & JSON bi-directional validator and formatter with syntax checking.//XML.PARSERXML document formatter, tree inspector and XML to JSON converter.//GRAPHQL.STUDIOGraphQL query & SDL formatter, minifier, AST field sorter and validator.//BASE64.CODECBase64 and URL-Safe encoder / decoder with full UTF-8 verification.//PASSWORD.GENCryptographically secure random password and entropy strength generator.//URL.STUDIO8-tool URL suite: encode, decode, validator, component parser and builder.//QR.STUDIOCustom QR code generator with embedded logos, colors, gradients and shapes.//ASCII.EXPLORERInteractive ASCII 0-255 table, Alt keyboard codes and CP437 symbols.//KEYCODES.LIVELive KeyboardEvent detector and JavaScript keycodes cheat sheet.//JWT.DEBUGGERJWT token decoder, claims inspector and Web Crypto signature verification.//BINARY.CODECBidirectional text to binary converter with digital rain and ASCII table.//CHARTS.STUDIOInteractive chart generator (bars, lines, pie, scatter) from CSV data.//UUID.V7Bulk generator for UUID v4, time-ordered v7, v1 and live UUID validator.//CSV.JSONBi-directional CSV to JSON converter with custom delimiters & table grid.//COLORS.STUDIOHEX/RGB/HSL/CMYK converter, palette harmonies and WCAG 2.1 contrast tester.//SEO.METASEO Meta Tags, Open Graph cards and real-time Google SERP card preview.//SCHEMA.JSONLDSchema.org JSON-LD structured data generator for Google Rich Snippets.//SITEMAP.XMLStandard XML Sitemap generator (Protocol 0.9) for Google Search Console.//ROBOTS.TXTRobots.txt generator, AI scraper blocking presets and live URL rule tester.//FAKE.DATASynthetic mock data generator: export records to JSON, CSV, SQL and TypeScript.//CLOCK.WORLDReal-time world clock with 3D holographic globe and 174 country timezones.//DATE.CALCDays between dates, exact age, business days, Unix timestamp and cron parser.//CALC.SUITESuite of 56+ online calculators: percentage, mortgage, loan, VAT, BMI & salary.//
MODULE 18 · SECURITY

JWT Decoder & Verifier

Paste a JSON Web Token to inspect its header, payload, and signature — 100% in your browser with Web Crypto, zero server uploads.

JWT Tokenpaste here
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6Ik5lbyBBbmRlcnNvbiIsInJvbGUiOiJuZXRydW5uZXIiLCJpc3MiOiJ0b29sYm94LmRldiIsImF1ZCI6InRvb2xib3gtY2xpZW50cyIsImlhdCI6MTc4ODQxMDUzMCwiZXhwIjoxNzkxMDAyNTMwfQ.mfTQP5T-mzHjk0WVobI-nRHK5W58dz5DKUt6uZi48E4
HeaderHS256
{ "alg": "HS256", "typ": "JWT" }
Payloadclaims
{ "sub": "1234567890", "name": "Neo Anderson", "role": "netrunner", "iss": "toolbox.dev", "aud": "toolbox-clients", "iat": 1788410530, "exp": 1791002530 }
⚠ EXPIREDvenció hace 2d
Standard Claims
subSubject · a quién representa"1234567890"
issIssuer · quién lo emitió"toolbox.dev"
audAudience · para quién es"toolbox-clients"
iatIssued At · emitido1788410530 · 9/3/2026, 4:42:10 AM
expExpiration · vence1791002530 · 10/3/2026, 4:42:10 AM
Custom Claims
name—"Neo Anderson"
role—"netrunner"
Signatureverify integrity
mfTQP5T-mzHjk0WVobI-nRHK5W58dz5DKUt6uZi48E4
// Technical guide & specifications

Technical guide: JSON Web Tokens (RFC 7519), JOSE algorithms and signature validation

What each token segment holds, how HS256, RS256 and ES256 differ, and which checks RFC 8725 requires.

1. The three segments: JOSE header, registered claims and signature

A JWT in compact serialization (JWS, RFC 7515) is three unpadded Base64URL strings joined by dots: header.payload.signature. The header declares "alg" and optionally "kid", which selects a key inside a JWKS document. The payload carries the registered claims from RFC 7519 section 4.1: "iss", "sub", "aud", "exp", "nbf", "iat" and "jti". The three time claims use the NumericDate type, meaning Unix seconds rather than milliseconds: passing Date.now() without dividing by 1000 mints tokens that expire in the year 57000 and that no validator will reject. The signature covers the exact ASCII string "base64url(header).base64url(payload)", so re-serializing the JSON with different key order or indentation already invalidates the token.

2. HS256 versus RS256 and ES256: picking a family

HS256 computes an HMAC-SHA-256 over a shared secret, which means any party able to verify is also able to mint tokens. That is acceptable inside a monolith that signs and validates its own sessions, provided the secret is at least 256 random bits: RFC 7518 requires an HMAC key no smaller than the hash output. RS256 signs with RSASSA-PKCS1-v1_5 and a private key of 2048 bits or more, so consumers only need the public half, usually published at /.well-known/jwks.json. ES256 (ECDSA over P-256) offers equivalent strength with 64-byte signatures instead of the 256 bytes of RSA-2048, which matters when the token rides in every Authorization header.

3. Attacks documented in RFC 8725: alg none, algorithm confusion and key injection

RFC 8725 collects the failures that keep reappearing in production. With "alg": "none" an attacker submits an unsigned token and a naive validator accepts it because it trusts a header the attacker controls; the fix is a server-side allowlist of algorithms. Algorithm confusion swaps RS256 for HS256 and signs using the RSA public key as the HMAC secret, which older libraries permitted because verification took a single "key" argument. Injection through "jku", "x5u" or "kid" redirects key resolution to an attacker-controlled host or path: constrain "kid" to a known set and never fetch URLs supplied in the header. Validating "iss" and "aud" additionally stops a legitimate token issued for another service from being replayed.

// Architecture & best practices

❓ Frequently asked questions about JSON Web Tokens

Can a JWT be revoked before it expires?

Not natively: a JWS is self-contained and the validator consults no state. The common patterns are a short "exp" of 5 to 15 minutes paired with an opaque refresh token stored in a database, a denylist keyed by "jti" whose TTL matches the token lifetime, or a credential-version claim that is incremented whenever sessions are invalidated.

What is the difference between JWS and JWE?

JWS (RFC 7515) signs the payload but leaves it readable: anyone holding the token can Base64URL-decode it and read every claim. JWE (RFC 7516) encrypts the content and has five segments instead of three, with a header that adds "enc" (for example A256GCM) alongside "alg". If the payload carries data that must stay hidden, you need JWE or you simply leave that data out.

Why does signature verification fail when the decoded JSON looks correct?

Because verification runs over the exact bytes of the first two segments, not over the resulting JSON object. Decoding, pretty-printing and re-encoding changes whitespace, key order or "=" padding and feeds a different input to the HMAC. It also fails when the secret carries an invisible trailing space, or when a PEM public key was pasted without its BEGIN and END lines.

Token and credential tools