A C major chord is C, E and G — in any order. What changes its sound most is which note is at the bottom:
Seventh chords have a third inversion too, with the 7th in the bass: C7 with B♭ at the bottom, which loves to step down to an F chord with A in the bass.
The chord's name and job stay the same. The bass note changes its colour and how much it wants to move.
Producers and session players write inversions as slash chords: chord / bass note. C/E means "a C chord with E in the bass" — first inversion. C/G is second inversion.
The bass note doesn't have to belong to the chord. F/G puts an F triad (F A C) over a G bass. Measured from G, those notes are the ♭7, 9 and 11 — a soft, open dominant that gospel, soul and pop players love in place of a plain G7. C/D does the same job on the way to G.
Reading tip: the letter before the slash is what the hands play; the letter after it is what the bass plays.
In root position every chord change makes the bass jump. With inversions, the bass can walk by step while the chords keep changing above it:
C – G/B – Am – Am/G – F – C/E – Dm – G
The bass walks C, B, A, G, F, E, D — a whole descending scale — and then lands on G. A long falling bass line like this is the backbone of "A Whiter Shade of Pale" (Procol Harum).
Inversions also keep the chords in one area of the keyboard, so the harmony sounds like one instrument moving instead of blocks jumping around.
Ear tip: listen to the bass, not the chords. When a bass line moves smoothly by step through a progression, there are almost always inversions or slash chords above it.
The first version flows; the second bumps. Same chords — the bottom note made the difference.