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

  • Redstone Torches
  • AND gate components
  • Redstone Dust
  • Solid Blocks

Overview: what the Binary Decoder is and 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.

In practice it is used for memory cell addressing, 7-segment display driving, command selection, output demultiplexing. The build below targets vanilla Java Edition 1.21.

How it 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.

It is assembled from redstone Torches, AND gate components, redstone Dust, and solid Blocks, and each of those parts plays a specific timing or logic role in the circuit rather than being interchangeable filler.

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 it

  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.

Uses & applications

  • 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 FAQ

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.

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).

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.

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.

Back to all circuits