Hard boiled and noir are often discussed together. And while a film or story could fit in both categories, they are two distinct genres. Hard boiled is typified by the stories of Dashiell Hammett and Raymond Chandler, and others from Black Mask and Dime Detective magazines.
Noir is usually (but not always) thought of in terms of film: black and white, shadowy movies with dark characters. Much hard boiled is noir, and vice versa. Far more expert folks have discussed the definitions of the two terms for decades.
One example, to me, are the works of Cornell Woolrich, whose “It Had to Be Murder” became the masterful suspense flick, Rear Window. Woolrich’s stories are noir, but not hard boiled.
Many of Humphrey Bogart’s films were hard boiled, including The Maltese Falcon (also noir), The Roaring Twenties and Bullets or Ballots. One of his later films, In a Lonely Place (based on the novel by Dorothy Hughes) is a noir classic but isn’t hard boiled.
So, just know that many films (usually crime related) from the thirties through the fifties and into the sixties, were hard boiled, noir, or both.