The record-breaking box office success of “Joker” could make a fortune for jailed pedophile Gary Glitter, according to reports.

A pivotal scene in the Joaquin Phoenix movie features two minutes of Glitter’s 1972 glam rock track “Rock and Roll Part 2.” That means the 75-year-old singer, a convicted pedophile serving 16 years for attacking three girls, could rake in hundreds of thousands of dollars, according to The Sun.

Glitter, whose real name is Paul Gadd, helped write the track and will receive a lump sum for allowing the recording to be used in the film, the paper said.

He will reportedly also receive royalties based on how well the film does. “Joker” has already made $93.5 million — the highest debut for an October film in US history — and garnered $234 million internationally on opening weekend, according to Variety.

Gary Glitter
Gary GlitterGetty Images

The disgraced former rocker will also get royalties from future DVD and soundtrack sales, The Sun said.

The use of the song — which appears in a scene where Phoenix’s Joker dances down a long flight of steps as he fully transforms into the villain — sparked outrage among fans.

Gary Glitter in 1975
Gary Glitter in 1975Getty Images

“They’re literally paying a pedophile to use his music in a movie about the consequences of child abuse. I’m off the fence – this movie is immoral bull—t,” @ManVsPink raged on Twitter.

“The most morally questionable aspect of the film is the use of a Gary Glitter song, and the film is well aware of this,” Darren Mooney wrote, later calling it “morally irresponsible.”

“The decision to pay a pedophile royalties is indefensible.”

Glitter is locked up after being found guilty in 2015 in the UK of attempted rape, four counts of indecent assault and one of having sex with a girl under the age of 13.

“It is difficult to overstate the depravity of this dreadful behavior,” Judge Alistair McCreath said at his sentencing.

He was also jailed in 1999 for possession of child pornography, the first of several convictions.

Gary Glitter Sentenced to Three Years in Prison in Vietnam
Gary Glitter listens to a guilty verdict being read out at the People’s Courthouse on March 3, 2006, in Ba Ria, Vietnam.

Getty Images

Colorado Shooting-Joker Movie
Joaquin Phoenix in “Joker”

Warnee Bros.

Joaquin Phoenix
Joaquin Phoenix in “Joker”

Warnee Bros.