Armor
Each piece gives armor points (a full Diamond or Netherite set gives 20) and Diamond and Netherite give toughness (2 and 3 a piece). Armor takes off up to 80% of a hit: the share blocked is the larger of armor ÷ 5 and armor − damage ÷ (2 + toughness ÷ 4), out of 25, at most 20 of 25. Big hits get through more, which is what toughness is for.
Resistance and enchantments
After armor, each level of the Resistance effect takes off 20%. Then come the enchantments: each level of Protection counts 1, each level of Fire, Blast or Projectile Protection 2 against its own kind of damage, and each level of Feather Falling 3 against falls. The total, at most 20, takes off 4% a point, so up to 80%.
Falls and burning
Armor points do nothing against falling or being on fire; only the enchantments and Resistance do. A fall costs one point (half a heart) for each block after the first 3, so 23 blocks is 20 points, a full health bar. Feather Falling IV with Protection IV on all four pieces lets you survive a fall of well over 60 blocks.
Questions
Is it the same in Bedrock Edition?
Not quite. Bedrock has no armor toughness, so Netherite's edge there is knockback resistance, and its enchantment rules differ a little. The numbers here follow Java Edition 1.21.
What about the Totem of Undying or a shield?
A shield blocks a hit from the front completely, and a totem saves you from a death. Neither is a reduction, so neither is counted here.
Does it save anything?
No. Nothing is stored or sent anywhere; your choices are kept in the page's address, so a copied link opens the same set.