The spherical grains of melamine intercalated vanadium pentoxide nanofibers are prepared by spray drying technique and utilized as cathode material for alkali ion batteries. Compared with the commercially available vanadium pentoxide, the c-axis interlayer spacing increased by 56.87 %, which is more conducive to shuttling alkali ions in the structure. The granulated cathode displays a good charge/discharge reversibility for sodium ions. In the voltage range from 2.0V to 3.9V, an initial discharge capacity of 108 mAh/g is attainable with 99.31 % capacity retention after 50 cycles of charge/discharge test at 0.1 C. Excellent lithium ion intercalation/deintercalation reaction is demonstrated in 300 cycles of 1 C test having 92.21 % capacity retention.