T8 and T12 have the same fittings - a G13.
The T refers to the fraction of an inch of the lamps diameter
T12s have a diameter of 12/12 and are one inch. T8 have a diameter of
8/12 inches (2/3 of an inch).As long as you bypass the ballast an LED tube will work in either.