After a permanent repair to her port propeller at Manus from 28 February to 19 March, she rejoined Task Force 54 at Ulithi on 22 March in preparation for the invasion of Okinawa. Joined by , , and "West Virginia", the fleet of battleships began its bombardment of Okinawa on 27 March. Providing shore bombardment, and later naval artillery support for ground forces, "New York" was on station for 76 consecutive days, during which she expended 4,159 rounds of 14-inch ammunition and 7,001 rounds of 5-inch ammunition. She was subjected to a "kamikaze" attack on 14 April which destroyed one spotting plane on its catapult, but the Japanese aircraft crashed from the ship and "New York" received only superficial damage, suffering two men injured. She was detached on 11 June, her gun barrels having been worn out by fire, and proceeded to Pearl Harbor to have her guns relined in preparation for the invasion of mainland Japan. She stopped by Leyte on 14 June and arrived at Pearl Harbor on 1 July. She was in the harbor on 15 August, the end of the war.