Optofluidics represents the interaction of light and fluids on a chip that integrates microfluidics and optics, which provides a promising optical platform for manipulating and analyzing fluid samples. Recent years have witnessed a substantial growth in optofluidic devices, including the integration of optical and fluidic control units, the incorporation of diverse photonic nanostructures, and new applications. All these advancements have enabled the implementation of optofluidics with improved performance. In this review, the recent advances of fabrication techniques and cutting-edge applications of optofluidic devices are presented, with a special focus on the developments of imaging and sensing. Specifically, the optofluidic based imaging techniques and applications are summarized, including the high-throughput cytometry, biochemical analysis, and optofluidic nanoparticle manipulation. The optofluidic sensing section is categorized according to the modulation approaches and the transduction mechanisms, represented by absorption, reflection/refraction, scattering, and plasmonics. Perspectives on future developments and promising avenues in the fields of optofluidics are also provided.