Skip to main content
Logic Circuits

BINARY DECODER

Converts a binary input into one-of-N output lines. A 2-bit decoder has 4 outputs, exactly one is active for each input combination. Used for memory addressing and display driving.

Binary Decoder in Minecraft

When to Use

Memory cell addressing, 7-segment display driving, command selection, output demultiplexing.

Materials

What you spend on materials for Binary Decoder

The Binary Decoder parts list leaves the count open, so work from the price of a single part: one Redstone Torch costs 1 Redstone and 1 Stick.

The Binary Decoder parts list, with the crafting cost of every single part
Used in Binary DecoderAmount in a Binary DecoderWhat one of these costs
Redstone Torch iconRedstone Torchas many as the build needs1 Redstone, 1 Stick

Recipes behind this Binary Decoder table are the ones from Java Edition 26.2.

Binary Decoder, in one place: what it is and what it does

Converts a binary input into one-of-N output lines. A 2-bit decoder has 4 outputs, exactly one is active for each input combination. Used for memory addressing and display driving.

As a logic circuit it routes, counts, or decodes signals, forming the building blocks that scale up into redstone computers.

Builders reach for the Binary Decoder when what they need is memory cell addressing, 7-segment display driving, command selection, output demultiplexing. The whole page is vanilla Java Edition 26.2 throughout.

How the Binary Decoder works: the redstone mechanics

A 2-to-4 decoder feeds the two address bits and their inverses into four AND gates, one per combination, so exactly one of the four outputs is on for any address. It is the reverse of an encoder and the standard way to pick one memory cell or one display segment.

You need redstone Torches, AND gate components, redstone Dust, and solid Blocks for the Binary Decoder, and each of those 4 entries does a job in the circuit that none of the others can take over.

Because this is a logic circuit, the thing to watch as you build is signal isolation between stages, so one part of the logic does not back-feed into another.

How to build the Binary Decoder

  1. 1For a 2-to-4 decoder: take 2 input lines (A and B).
  2. 2Generate NOT A and NOT B.
  3. 3Create 4 AND gates: (NOT A AND NOT B), (NOT A AND B), (A AND NOT B), (A AND B).
  4. 4Each AND gate output corresponds to one of the 4 possible input combinations.
  5. 5Exactly one output will be ON for any given input combination.
  6. 6Power it up and watch one full cycle: confirm it drives the correct output for each input combination before wiring it into a larger contraption.

Where the Binary Decoder earns its keep

  • ▸Memory cell addressing, 7-segment display driving, command selection, output demultiplexing.
  • ▸2-to-4 decoder (basic, 2 inputs, 4 outputs), a variant suited to particular space or timing needs.
  • ▸3-to-8 decoder (3 inputs, 8 outputs), a variant suited to particular space or timing needs.
  • ▸Comparator-based decoder (uses signal strength thresholds), a variant suited to particular space or timing needs.
  • ▸Encoder (reverse, converts one-hot input to binary output), a variant suited to particular space or timing needs.

Tips & common mistakes

  • !Every output line needs its own correctly-inverted AND inputs; a single mis-wired inverter makes two outputs fire at once.
  • !Build and verify each logic stage on its own before connecting them; debugging a full multi-stage circuit at once is far harder.
  • !Remember that bare redstone dust loses 1 signal strength per block, so insert a repeater before any run exceeds 15 blocks inside this circuit.

Binary Decoder, frequently asked questions

  1. Knowledge Book, the icon for this circuit question

    What is a Binary Decoder used for?

    A Binary Decoder is used for memory cell addressing, 7-segment display driving, command selection, output demultiplexing. As a logic circuit it routes, counts, or decodes signals, forming the building blocks that scale up into redstone computers.

  2. Redstone Torch, named in this circuit answer

    What do you need to build a Binary Decoder?

    You need redstone Torches, AND gate components, redstone Dust, and solid Blocks. For a 2-to-4 decoder: take 2 input lines (A and B).

  3. The Binary Decoder built in Minecraft

    How does a Binary Decoder work?

    A 2-to-4 decoder feeds the two address bits and their inverses into four AND gates, one per combination, so exactly one of the four outputs is on for any address. It is the reverse of an encoder and the standard way to pick one memory cell or one display segment.

  4. Book, the icon for this circuit question

    Are there different versions of the Binary Decoder?

    Yes, common variants include 2-to-4 decoder (basic, 2 inputs, 4 outputs), 3-to-8 decoder (3 inputs, 8 outputs), comparator-based decoder (uses signal strength thresholds), and encoder (reverse, converts one-hot input to binary output). Pick the one that fits your available space and timing requirements.

Circuits that share parts with Binary Decoder

Binary Decoder does not stand on its own. 5 other circuit pages are tied to it:

Back to all 15 circuits
Binary Decoder built in Minecraft redstone
Binary Decoder in Minecraft. 4 kinds of part and 5 build steps.