The rating also applies to the performance-oriented 2017 Audi S3 compact sedan.
On sale in October at Audi dealerships, the 2017 A3 and S3 received four stars in the front crash test, five stars in the side crash test and four stars in the rollover crash test.
The rating applies to front-wheel-drive and all-wheel-drive versions of the 2017 A3. The S3 is all-wheel drive.
The 2017 Audi A3 Sportback e-tron hatchback and the 2017 A3 Cabriolet convertible have not been rated by the NHTSA.
The refreshed 2017 A3 sedan, convertible and S3 now feature standard Audi Pre Sense Front, a radar-based system that provides forward collision warning and automatic emergency braking.
All A3s come with a standard rearview camera, antilock brakes, stability control, traction control and Audi Pre Sense Basic, which provides automatic seat-belt tightening and window closing in the case of a potential frontal crash.
Active lane keeping assist is standard on the Prestige model. It warns the driver if the vehicle approaches the edge of a lane at speeds above 40 mph.
Rear cross-traffic alert and a blind-spot monitoring system are optional.
The Insurance Institute for Highway Safety has not rated the 2017 A3.
Edmunds says: Car shoppers keeping score should note that the 2017 Acura ILX and Buick Verano also earned the highest five-star safety rating from the NHTSA. The 2017 Mercedes-Benz CLA-Class has not been rated.