New Yorkers love to F themselves on the F train.

That’s the unsavory takeaway from NYPD data on subway masturbators obtained by The Post, which shows the line had the highest number of complaints in 2017.

The NYPD fielded a total of 376 reports of public lewdness or exposure of a person last year, and straphangers logged 24 complaints at stations served solely by the F train — more than any other, MTA data show.

Counting all stations where the F stops, 60 complaints were logged.

The Fourth Avenue–Ninth Street station in Park Slope was the most popular stop for pocket-pool F-train riders, with five complaints in 2017.

“Ewww, [I’m] horrified. This is the station I commute to and from everyday,” said Isla F., 34, as she waited for a train on Monday.

“It actually happened [to me] last week in Soho,” said Brooklyn resident Aya, also at the station. “It was gross but we never reported it, we just walked away.”

The second-jerkiest line is the No. 1 train. NYPD figures attributed 19 complaints to that train alone, but showed that more than 42 complaints had been logged at stations where it stops.

The L train was third, with 17 complaints. But apparently, Brooklyn hipsters aren’t the ones getting busy with themselves — most of the complaints on the line came via Manhattan’s Union Square or Brooklyn’s less-gentrified Brownsville and Canarsie neighborhoods.

Unsurprisingly, the massive Times Square-Port Authority transit hub at West 42nd Street had more complaints than any other station, with 16.

The Upper West Side is a hot spot for wankers, too. Stations between 59th and 110th streets logged 33 complaints compared to six on the Upper East Side.

And reports are on the rise, as 2017’s 376 complaints was a spike from 296 in 2016. Reps for the MTA and NYPD attribute the swelling figures to cellphone cameras and new public-service announcements.

“We believe that part of the increase in complaints has been due to the NYPD’s Transit Bureau and MTA’s joint campaign encouraging sex-crime victims to come forward and report these crimes,” the NYPD said in a statement to The Post.

“There has also been an increase in cellphone cameras,” the department said, “which has made it easier for both victims and witnesses to take a picture of the suspect. In order to address these complaints we have plainclothes officers patrolling the transit system throughout the city.”

Additional reporting by ­Danielle Furfaro