The light extraction efficiency of top-emitting organic light-emitting diodes (OLEDs) is numerically investigated employing the finite-difference time-domain method. The periodic nanostructures formed by embedding the sphere arrays in polystyrene (PS) are placed on top of OLED to frustrate the total internal reflection at the interface between OLED and free space. These nanostructures serve as an intermediate medium to extract the light out of OLED devices. Efficiently coupling both evanescent waves and propagation waves into spheres and subsequently extracting these light waves out of the sphere is key to achieving high extraction efficiency. By tuning the thickness of PS layer, both of the in-coupling efficiency and out-coupling efficiency are optimized for achieving high light extraction efficiency. Thicker PS layer results in higher in-coupling efficiency in sphere while the thinner PS layer leads to higher out-coupling efficiency. Thus the maximum light extraction is a trade-off between the in-coupling efficiency and out-coupling efficiency. The study shows that light extraction efficiency of 89% can be achieved by embedding 0.90 μm TiO2 sphere in 0.30 μm PS layer with optimized in-coupling efficiency, out-coupling efficiency and cavity effect.