The ballast is different and the tubes are different lengths, and the pins on the ends are different- T12 is medium bi-pin and T5 is small bi-pin. You can usually use T12 tubes in T8 fixtures and sometimes T8 in T12, but usually the T12 ballast is old and too worn out for the work.