Light extraction and current injection are two important considerations in the development of high efficiency light-emitting-diodes (LEDs), but usually cannot be satisfied simultaneously in nanostructure patterned devices. In this work, we investigated near-UV LEDs with nanopillar and nanohole patterns to improve light extraction efficiency. Photoluminescence (PL) intensities were enhanced by 8.0 and 4.1 times for nanopillar and nanohole LEDs compared to that of planar LED. Nanopillar LED exhibits higher PL emission than that of the nanohole LED, attributing to a convex shape sidewall for more effective outward light scattering, and reduction of quantum-confined-stark-effect owing to strain relaxation. However, nanopillar LED exhibits lower electroluminescence intensity than the nanohole sample, which calls for further optimization in carrier distributions. Experimental results were further supported by near-field electric field simulations. This work demonstrates the difference in optical and electrical behaviors between the nanopillar and nanohole LEDs, paving the way for detailed understanding on luminescence extraction mechanisms of nanostructure patterned UV emitters.