How to Encode Data with CyberChef

Updated

To encode data in CyberChef, open cyberchef.org, type or paste your input into the Input pane, drag the encoding operation you need (such as To Base64, To Hex, or URL Encode) from the Operations list into the Recipe column, then read the result in the Output pane. The recipe runs automatically as you build it, so you usually don't need to press anything to see the encoded value. This works for any text or byte input and for chaining multiple encoding steps together.

The three panes you work in

CyberChef's layout is fixed, and knowing which pane does what removes most of the confusion:

Pane Role
Input (top right) Where you type or paste the raw data to be encoded
Recipe (middle left) The ordered list of operations applied to the input
Output (bottom right) The result after the recipe runs

Operations live in the Operations list on the far left. Each one is a self-contained transformation — encode, decode, hash, compress, and so on. Encoding is just a matter of picking the right operation and placing it in the recipe.

Step-by-step: encoding text

  1. Open the tool. Go to cyberchef.org in a browser. No install is required.
  2. Enter your input. Click into the Input pane and type or paste the text you want to encode.
  3. Find the operation. Use the search box above the Operations list and type the encoding name — for example base64, hex, or url. The list filters as you type.
  4. Add it to the recipe. Drag the operation into the Recipe column, or double-click it. The Output pane updates immediately.
  5. Set options if the operation has them. Some operations expose arguments (for example, a delimiter or a character set). Adjust these in the recipe entry; the output recalculates.
  6. Read the result. The encoded value appears in the Output pane.
  7. Copy it out. Use the copy button on the Output pane, or select the text manually.

Choosing the right operation

The operation name tells you the direction. Operations prefixed with To encode; those prefixed with From decode.

You want Operation
Text → Base64 To Base64
Base64 → text From Base64
Text → hex To Hex
Hex → text From Hex
Text → percent-encoding URL Encode
Percent-encoding → text URL Decode

If you pick the wrong direction you'll get output that looks like garbage or an error — switch to the matching From/To operation.

Chaining multiple encodings

A recipe is a pipeline, and operations run top to bottom. To Base64-encode a hex string, for example, add To Hex first, then To Base64 below it. The Output pane always shows the result of the full chain, so you can build up multi-step transformations and inspect the final value.

To reorder, drag recipe entries up or down. To remove one, click its delete control. The recipe re-runs on every change.

Using Bake

CyberChef normally runs the recipe live as you edit. The Bake button forces the recipe to execute against the current input — useful when an operation is slow, when you've pasted a large input, or when you want to be sure the output reflects the latest state. After baking, the Output pane holds the result and you can copy it.

Common problems and fixes

  • Output looks like the input. You probably added a decode operation, or the operation didn't actually change the data. Check that you used a To … operation.
  • An operation shows a missing-argument warning. Some operations require an argument (a key, a delimiter, a mode). Fill it in the recipe entry; the warning clears and the output updates.
  • The result is truncated or oddly formatted. Encoding operations may insert line breaks or delimiters by default. Look at the operation's arguments — many let you control line length or separator.
  • You can't find an operation. Clear the search box and browse the categories, or try a synonym (for example, search percent if url doesn't surface what you expect).
  • The recipe does nothing. Confirm the operation is actually in the Recipe column and not just highlighted in the Operations list.

What CyberChef is good for here

CyberChef is a browser-based "Swiss Army knife" for encryption, encoding, compression, and data analysis. For encoding tasks specifically, its advantage is that you can stack operations, see the output instantly, and adjust arguments without writing code — which makes it convenient for one-off conversions and for understanding how a value was produced.