A diminished chord is a three-note chord built from a root, a minor third and a diminished fifth: two minor thirds stacked on top of each other, three semitones apart. On piano, C diminished is C–E♭–G♭, written Cdim or C°.
You can also think of it as a minor chord with its fifth lowered by a half step. Adding a fourth note a diminished seventh above the root gives a diminished seventh chord (C–E♭–G♭–B𝄫); adding a minor seventh instead gives a half-diminished chord (C–E♭–G♭–B♭).