There are four primary considerations for spare bolts and nuts: (1) diameter, (2) pitch, (3) class (strength rating), and length (bolts only). Toyota was nice and standardized on only one pitch for each thread diameter, as follows:
6 mm diameter - 1 mm pitch (iso course) - requires 10 mm wrench to fit head / nut
8 mm diameter - 1.25 mm pitch (iso course) - requires 12 mm wrench to fit head / nut
10 mm diameter - 1.25 mm pitch (iso fine) - requires 14 mm wrench to fit head / nut
12 mm diameter - 1.25 mm pitch (iso other) - requires 17 mm wrench to fit head / nut
14 mm diameter - 1.5 mm pitch (iso fine) - requires 19 mm wrench to fit head / nut
16 mm diameter - 1.5 mm pitch (iso fine) - requires 22 mm wrench to fit head / nut