Crypto Kitchen

CyberChef-style recipes: chain encodings, compression, hashes, AES, JWT and more, step by step.

Any file up to 10 MB, processed as raw bytes.

When you run the tool, this file is uploaded to our server, processed and then deleted. The files the tool creates stay on our server for about 2 hours: download them to keep them, or save them to your Google Drive.

More options

Syntax: op-id name=value name="value with spaces". Operations: to-base64, from-base64, to-base64url, to-base32, from-base32, to-base58, from-base58, to-hex (separator?), from-hex, to-hexdump, url-encode (all?), url-decode (plus?), html-encode (nonAscii?), html-decode, punycode-encode, punycode-decode, qp-encode, qp-decode, gzip (level?), gunzip, deflate, inflate, deflate-raw, inflate-raw, brotli-compress (quality?), brotli-decompress, hash (alg?, format?), hmac (alg?, key, format?), crc32, aes-encrypt (mode?, key, iv, aad?, padding?), aes-decrypt (mode?, key, iv, tag?, aad?, padding?), xor (key), rot13, caesar (shift?), vigenere-encode (key), vigenere-decode (key), jwt-decode, jwt-verify (key, alg?), uuid-parse, ulid-parse, timestamp (unit?), json-pretty (indent?, sortKeys?), json-minify, regex-extract (pattern, flags?, group?), text-case (mode?), reverse (unit?), byte-swap (width?), entropy, magic (depth?). Byte arguments accept hex:, b64: or utf8: prefixes. Use @key to insert the secret field.

Optional: HMAC/JWT secret or a PEM/JWK public key for jwt-verify. Hidden in the results.

Try an example: · · · · · ·

More about this tool

Part of Keysmith Cryptography & security tools

How it works

Write a recipe of operations, one per line, and run text or a file (up to 10 MB) through it: base64/32/58, hex, URL, HTML entities, Punycode and quoted-printable, gzip/deflate/brotli, hashes and HMAC, AES-GCM/CBC/CTR, XOR, ROT13/Caesar/Vigenère, JWT decode and verify, UUID/ULID parsing, timestamps, JSON, regex extraction, text case, byte swap, entropy and a Magic auto-decoder. Every intermediate result is shown; binary output can be downloaded.

  • The input (pasted text, hex, base64 or an uploaded file) becomes a byte string; each recipe line is an operation that maps bytes to bytes. Text operations decode as UTF-8. The table shows every intermediate result; on an error the pipeline stops and reports the failing step.
  • Cryptography uses Node.js crypto (OpenSSL): AES-GCM appends/verifies the 16-byte tag, CBC uses PKCS#7 padding, CTR is a stream mode. You must supply key and IV, so results are reproducible; never reuse a GCM nonce with the same key.
  • JWT decode never checks signatures. jwt-verify supports HS256/384/512 (secret), RS*/PS* (RSA), ES256/384/512 (raw r||s signatures as in RFC 7518) and EdDSA with a PEM, certificate or JWK key, and refuses tokens whose header alg differs from the expected one.
  • Decompression stops at 50 MB of output to defuse decompression bombs; regex extraction runs in an isolated VM context with a 1-second limit.
  • Magic checks for gzip/zlib headers, JWTs, UUIDs/ULIDs, timestamps, JSON, percent-encoding, HTML entities, hex, base64/base64url, base32 and quoted-printable, and applies the most plausible decoder repeatedly while the output stays readable or reveals another known format.

Data and keys are processed on the server for this request only. Do not paste production secrets.

Sources

Use this tool in an app

These free programs for your browser have this tool built in, next to everything else the task needs.

  • Keysmith Crypto & secrets lab

    Audit certificates, keys, TLS and passwords in one lab; server runs ask first.

    Open Keysmith

Related tools

  • CyberChef-lite Pipeline – One-click decoding recipes: JWT, base64 → gunzip → JSON, double URL decode, hex dump.
  • RSA/ECC Key Inspector – Inspect PEM, DER, JWK or OpenSSH keys: type, size, curve, fingerprints, thumbprint and weaknesses.

How to use the Crypto Kitchen

Chain decoding, compression, hashing, AES, JWT and text operations into a recipe and see every intermediate result, CyberChef-style.

What it is for

A log line contains H4sIAAAA…, an API returns a token you'd like to inspect, or you need to check that an AES-GCM ciphertext decrypts with the key you were given. These jobs usually take three or four separate tools in a row. The Crypto Kitchen lets you write them as a recipe, one operation per line, and shows the bytes after every step.

Operations include base64/base32/base58, hex and hexdumps, URL and HTML encoding, Punycode, quoted-printable, gzip/deflate/brotli, hashes, HMAC and CRC-32, AES in GCM, CBC and CTR mode, XOR, classic ciphers (ROT13, Caesar, Vigenère), JWT decode and verify, UUID/ULID and timestamp parsing, JSON formatting, regex extraction, text case, byte swapping, an entropy estimate and magic, which guesses the decoding chain for you. Input can be pasted text, hex, base64 or a file up to 10 MB.

Your data and key are processed on the server for the request only. Don't paste production secrets. It's a debugging workbench, not a vault.

Worked example

Paste H4sIAAAAAAACA6tWKi1OLVKyUkpMSVTSUSrKz0ktVrKKVkpMyc3MU9JRSkktU4rVUUpMLsksS1WyKikqTa0FAJsiBuU0AAAA and use the recipe:

from-base64
gunzip
json-pretty

The step table shows what happens. From Base64 gives 72 binary bytes starting with 1f 8b, the gzip signature. Gunzip gives 52 bytes of text, {"user":"ada","roles":["admin","dev"],"active":true}. JSON pretty print gives the indented 78-byte version.

Now replace the whole recipe with a single line, magic. You get the same output, with the explanation "from-base64 (base64 alphabet, length multiple of 4) → gunzip (gzip magic bytes 1f 8b) → json-pretty (valid JSON)".

A second example: the text Attack at dawn through aes-encrypt mode=gcm key=… iv=cafebabefacedbaddecaf888, then entropy, then aes-decrypt with the same parameters. Encryption produced 30 bytes, the 14-byte ciphertext plus the 16-byte tag 6c47ff63607929534a6a05ccbb85e491. The entropy step measured 4.84 bits per byte and warned that 30 bytes is too short for a reliable estimate. Decryption reported "GCM tag verified: the ciphertext is authentic".

How to read the result

  • Steps table: index, operation, arguments (keys show as •••), size in bytes, whether the output is text or binary, and a preview. If a step fails, the pipeline stops there and names it.
  • Output: the final bytes as text, hex or base64 (choose with Show output as), plus their SHA-256. Binary output can be downloaded.
  • Notes: per-step facts such as the GCM tag, a JWT's iat as a date, or the chain that magic chose.

Tips and common mistakes

  • Put secrets in the Secret / key field and reference them as @key, for example jwt-verify key=@key alg=HS256. They're hidden in the results.
  • Defaults differ between operations. AES keys, IVs and XOR keys are read as hex, while HMAC and JWT secrets are read as UTF-8 text. Add a hex:, b64: or utf8: prefix whenever you're unsure.
  • jwt-decode never checks the signature. Use jwt-verify with the expected alg. It refuses tokens whose header claims a different algorithm.
  • Never reuse a GCM IV with the same key. It's fine in a test recipe, but fatal in production.
  • An entropy close to 8 bits per byte suggests compressed or encrypted data, but short inputs can't reach that ceiling, so don't read too much into small samples.
  • Arguments with spaces need quotes, as in regex-extract pattern="@([a-z0-9.-]+)" group=1.

FAQ

Is this the same as CyberChef?

It's the same idea, recipes of chained operations, with a smaller set of operations. It also works as a JSON API, so you can run the same recipe from a script.

Can it crack an unknown cipher?

No. It applies operations you specify, and magic only recognises encodings and compression, not encryption.

Which JWT algorithms can it verify?

HS256/384/512 with a secret; RS, PS, ES256/384/512 and EdDSA with a PEM, certificate or JWK public key.

Is there a size limit for decompression?

Yes. Output stops at 50 MB to defuse decompression bombs.

Guide last updated:

For scripts and AI agents

  • JSON API: POST https://cryptokitchen.usefulweb.site/api/v1/calculate (same calculation as this page)
  • Interface description: OpenAPI 3.1 · AI guide: llms.txt
  • MCP server (Streamable HTTP): https://cryptokitchen.usefulweb.site/mcp · tool name crypto_kitchen
Example request
curl -s -X POST https://cryptokitchen.usefulweb.site/api/v1/calculate \
  -H 'content-type: application/json' \
  -d '{"input":"H4sIAAAAAAACA6tWKi1OLVKyUkpMSVTSUSrKz0ktVrKKVkpMyc3MU9JRSkktU4rVUUpMLsksS1WyKikqTa0FAJsiBuU0AAAA","recipe":"from-base64\ngunzip\njson-pretty"}'
Feedback · ideas & bug reports welcome