Look into a mirror and something apparently obvious happens.
Raise your right hand and the person in the mirror appears to raise their left hand.
Writing appears backwards.
Yet your head remains at the top and your feet remain at the bottom.
So why does a mirror apparently reverse left and right, but not up and down?
The surprising answer is:
It doesn’t.

THE MIRROR ISN’T SWAPPING LEFT AND RIGHT
Imagine standing directly in front of a mirror.
Your right hand is on one side of the room.
Its reflection appears on exactly the same side of the room.
Your left hand does the same.
The mirror hasn’t moved either hand sideways.
Nor has it turned you upside down.
What it has changed is something else entirely.
WHAT THE MIRROR ACTUALLY REVERSES
Suppose your nose is 50 cm in front of the mirror.
Its virtual image appears to be 50 cm behind the mirror.
Move closer to the mirror and the image moves correspondingly closer behind it.
The direction perpendicular to the mirror has effectively been reversed.
Front becomes back.
But left remains left.
Right remains right.
Up remains up.
And down remains down.
SO WHY DOES YOUR RIGHT HAND LOOK LIKE ITS LEFT HAND?
Because your brain performs an extra step.
When you look at the person in the mirror, you naturally imagine that person as though they were you turned around and facing back towards yourself.
To make that comparison, you mentally rotate yourself through 180°.
And when you turn around horizontally, your right side ends up opposite what was previously your left side.
The mirror didn’t perform that rotation.
Your brain did.
That’s why the reflected person appears to have their left hand where you have your right.
TRY IT WITH WRITING
Write a word on a transparent sheet.
Look at it in a mirror and the writing appears reversed.
Now forget the mirror and simply turn the transparent sheet around so that you look at the writing from behind.
You see essentially the same reversal.
The apparent left-right swap occurs because you’ve turned the object around to view its other side.
That is effectively what your brain imagines doing when it interprets the person in the mirror.
BUT WHY NOT UP AND DOWN?
Here’s the really curious part.
There is nothing special about left and right as far as the mirror is concerned.
We normally imagine turning around by rotating ourselves horizontally.
But imagine instead that you somehow rotated yourself vertically — performing a half-somersault over the top of the mirror to face back towards yourself.
Now your head and feet would have exchanged positions relative to the original scene.
You might then be tempted to say that the mirror had reversed up and down.
Once again, however, the mirror wouldn’t have done either.
The apparent reversal depends on how we imagine rotating ourselves to occupy the position of the reflected person.
WHAT ABOUT MIRROR WRITING?
Words make the illusion particularly convincing because writing has a defined direction.
When you hold ordinary writing towards a mirror, the reflected image corresponds to viewing that writing from the opposite side of the mirror plane.
Our brains interpret this as the familiar backwards writing of a mirror.
But the mirror still hasn’t selectively decided to reverse the horizontal direction while leaving the vertical direction alone.
It has simply reflected the light according to the laws of reflection.
THE PHYSICS IS REMARKABLY SIMPLE
Every ray of light obeys the same basic rule:
angle of incidence = angle of reflection.
Light from each part of your body strikes the mirror and is reflected towards your eyes.
Your brain traces those reflected rays backwards in straight lines.
They therefore appear to originate from points behind the mirror.
That produces the virtual image you see.
No mysterious left-right swapping occurs anywhere in the physics.
The strange part happens when our brains interpret what we’re looking at.