We demonstrate that using intense femtosecond laser pulses to optically time ion flight can lead to a miniature time-of-flight mass spectrometer. After laser ionization, the molecular ion is accelerated by a static electric field and detected using a second, delayed laser pulse. The relative positions of the two laser foci determine the ion flight distance while the time separation of the laser pulses fixes the ion flight time. We mass-resolve CS2 or C6H6 isotopes after a flight distance of 360 μm using either double ionization or Coulomb explosion detection.