Ocarina of Time has four swords: the Kokiri Sword for young Link, the Master Sword, and two giant two-handed blades for adult Link, the Giant's Knife and Biggoron's Sword. This page covers where to get each one, how strong it is and the catch with each, plus the sword moves worth knowing.
Quick answers
Strongest sword? Biggoron's Sword, the prize at the end of the adult trading sequence: four times as strong as the Kokiri Sword and twice the Master Sword, and it never breaks. The catch: it takes both hands, so you can't use a shield.
Giant's Knife or Biggoron's Sword? Same strength, but the Giant's Knife breaks after 8 hits (or at once if it hits a wall). Biggoron's Sword is the one to keep.
Do I need either? No. The Master Sword is enough to finish the game, and it's the sword you need for Ganon.
Swords Compared
Sword
Strength
Who uses it
The catch
Kokiri Sword
1×
Young Link
Short reach; the weakest sword.
Master Sword
2×
Adult Link
None: one-handed, so you keep your shield.
Giant's Knife
4×
Adult Link
Two-handed, and it breaks after 8 hits.
Broken Giant's Knife
1×
Adult Link
Short blade, no Spin Attack, still two-handed.
Biggoron's Sword
4×
Adult Link
Two-handed: no shield.
For comparison, a Deku Stick hits twice as hard as the Kokiri Sword, but it breaks after one hit.
Every Sword
Kokiri Sword
Where: in the training ground in Kokiri Forest: crawl through the small hole in the wall, dodge the rolling boulder in the passage beyond, and open the chest at the end. Mido won't let you see the Great Deku Tree until you have a sword and shield.
Notes: the only sword young Link can use, a treasure of the Kokiri.
Master Sword
Where: the Temple of Time, behind the Door of Time. Collect the three Spiritual Stones and play the Song of Time to open the door.
Notes: pulling it seals Link away for seven years and he wakes up as an adult. From the Forest Temple on, put it back in its pedestal to return to childhood, and pull it again to go forward.
Giant's Knife
Where: as young Link, blow open Medigoron's shop in Goron City with a bomb; he says he's working on something that will take years. Come back as an adult and buy it for 200 Rupees.
Notes: two-handed, four times the Kokiri Sword's strength, but it breaks after 8 hits. A broken one can be replaced by buying another.
Biggoron's Sword
Where: the last prize of the adult trading sequence, which starts with the Pocket Egg from Anju in Kakariko. Biggoron forges it from the Claim Check. See the trading sequence guide.
Notes: as strong as the Giant's Knife and unbreakable, but you can't use a shield with it. Once you have it, you can't buy the Giant's Knife again.
Sword Moves
Jump Attack
Draw your sword, target an enemy and press A. Link leaps in for a strike that does twice the damage of a normal swing, but leaves him open for a moment afterwards.
Spin Attack
Hold B and let go, or spin the Control Stick in a full circle and press B. Hold B for two seconds for a double spin. Once you have magic from the Great Fairy, a charged Spin Attack sends out a magic ring with longer reach (spinning the stick adds the ring without costing magic).