Arriving Pearl Harbor on 4 March, she got underway for Majuro five days later and for the next month conducted antisubmarine patrols and participated in the blockade of the enemy-held atolls in the Marshall Islands.
For the next 23 days, she provided counter-battery fire and conducted antisubmarine patrols, claiming damage to a submarine on the 17th, she, escorted ships from Eniwetok and participated in the bombardment of Tinian.
Assigned with Remey and McGowan to the Eastern Attack Group, Melvin began launching torpedoes soon after 0300, claiming hits on the Japanese battleship Fusō, which sank at about 0338.
Within 48 hours, Melvin was en route to Hollandia, and escorting resupply convoys to the Philippines into December, when she returned to the Solomon Islands to rehearse for the assault on Luzon.
Steaming north with that force on 10 February, Melvin guarded the carriers as their aircraft raided Honshū and then provided air cover during the Iwo Jima campaign.
Melvin remained with the aircraft carrier until 10 August, when she sailed north to join TF 92 in an anti-shipping sweep and bombardment of Paramushiro.
With that mission completed on the 12th, she sailed east to Adak, Alaska, where she received word of the Japanese surrender and orders to return to Japan for occupation duty with minesweepers off northern Honshū.