"Density" sortied from Ulithi 19 March 1945 to sweep mines preparatory to the invasion of Okinawa on 1 April. Patrolling off Okinawa for its capture and occupation, "Density" fired on the enemy in several suicide attacks. On 6 April she splashed several of the kamikaze force which struck the Fleet, then assisted , picking up 16 of her survivors and towing her to Kerama Retto. On the 22nd she splashed an enemy attacker which cleared her bridge by only , then rescued three survivors from stricken before resuming her patrol. Five days later she recovered the body of an enemy officer from a plane she had downed and thus obtained valuable intelligence material including a secret code book and photographs. While sweeping mines she sank an enemy suicide boat off Naha on 4 May.