Optical trapping techniques are of great interest since they have the advantage of enabling the direct handling of nanoparticles. Among various optical trapping systems, photonic crystal nanobeam cavities have attracted great attention for integrated on-chip trapping and manipulation. However, optical trapping with high efficiency and low input power is still a big challenge in nanobeam cavities because most of the light energy is confined within the solid dielectric region. To this end, by incorporating a nanoslotted structure into an ultracompact one-dimensional photonic crystal nanobeam cavity structure, we design a promising on-chip device with ultralarge trapping potential depth to enhance the optical trapping characteristic of the cavity. In this work, we first provide a systematic analysis of the optical trapping force for an airborne polystyrene (PS) nanoparticle trapped in a cavity model. Then, to validate the theoretical analysis, the numerical simulation proof is demonstrated in detail by using the three-dimensional finite element method. For trapping a PS nanoparticle of 10 nm radius within the air-slot, a maximum trapping force as high as 8.28 nN/mW and a depth of trapping potential as large as 1.15×105 kBT mW−1 are obtained, where kB is the Boltzmann constant and T is the system temperature. We estimate a lateral trapping stiffness of 167.17 pN·nm−1· mW−1 for a 10 nm radius PS nanoparticle along the cavity x-axis, more than two orders of magnitude higher than previously demonstrated on-chip, near field traps. Moreover, the threshold power for stable trapping as low as 0.087 μW is achieved. In addition, trapping of a single 25 nm radius PS nanoparticle causes a 0.6 nm redshift in peak wavelength. Thus, the proposed cavity device can be used to detect single nanoparticle trapping by monitoring the resonant peak wavelength shift. We believe that the architecture with features of an ultracompact footprint, high integrability with optical waveguides/circuits, and efficient trapping demonstrated here will provide a promising candidate for developing a lab-on-a-chip device with versatile functionalities.