The analysis of individual biological nanoparticles has significantly advanced our understanding of fundamental biological processes but is also rapidly becoming relevant for molecular diagnostic applications in the emerging field of personalized medicine. Both optical and electrical methods for the detection and analysis of single biomolecules have been developed, but they are generally not used in concert and in suitably integrated form to allow for multimodal analysis with high throughput. Here we report on a dual-mode electrical and optical single-nanoparticle sensing device with capabilities that would not be available with each technique individually. The new method is based on an optofluidic chip with an integrated nanopore that serves as a smart gate to control the delivery of individual nanoparticles to an optical excitation region for ensemble-free optical analysis in rapid succession. We demonstrate electro-optofluidic size discrimination of fluorescent nanobeads, electro-optical detection of single fluorescently labeled influenza viruses, and the identification of single viruses within a mixture of equally sized fluorescent nanoparticles with up to 100% fidelity.