Operator Precedence Visualizer

Visualize how your expression is grouped based on operator precedence.

The classic C table. C++, Java, and JavaScript follow it, with a few extra operators.

Expression ready.

Operator Precedence

Operators are listed in the order they are evaluated.

Highest
▲▼
Lowest
  1. +Addition1
  2. <<Left shift2
  3. ==Equality3
  4. &Bitwise AND4

Expression Tree

The tree starts empty. Each step adds the next operator and attaches it to what is already there.