NEW YORK — Ken Griffey Jr. was elected to baseball’s Hall of Fame on Wednesday with the highest voting percentage ever, and Mike Piazza will join him in Cooperstown.

A star slugger of the Steroids Era who was never tainted by accusations of drug use, Griffey got 437 of 440 possible votes in his first appearance on the Baseball Writers’ Association of America ballot. His 99.3 percentage topped the previous mark of 98.84, set when Tom Seaver appeared on 425 of the 430 ballots in 1992.

There had been speculation that Griffey could become the first unanimous selection.

“I can’t be upset. It’s just an honor to be elected and to have the highest percentage is definitely a shock,” Griffey said on a conference call.

After falling 28 shy last year, Piazza received 365 votes in his fourth time on the ballot and will be inducted along with Griffey on July 24.

“Incredibly special. Wow,” Piazza said on a call with MLB Network.

A player needed 75 percent to gain election. Jeff Bagwell missed by 15 votes and Tim Raines missed by 23. Trevor Hoffman, on the ballot for the first time, was 34 short.

The vote total dropped by 109 from last year because writers who have not been active for 10 years lost their votes under new rules.

Mike Piazza, the best hitting catcher in major league history, was elected to the Baseball Hall of Fame on his fourth try. Associated Press file photo

Mike Piazza, the best hitting catcher in major league history, was elected to the Hall of Fame on his fourth try.
Associated Press file photo

There were significant increases for two stars who have been accused of steroids use. Roger Clemens rose to 45 percent and Barry Bonds rose to 44 percent, both up from about 37 percent last year.

Mark McGwire, who admitted using steroids, received 12 percent in his 10th and final ballot appearance.

“They were Hall of Famers before all this stuff started,” Griffey said on MLB Network.

Half of baseball’s top 10 home run hitters are not in the Hall: Bonds (762), Alex Rodriguez (654), Jim Thome (612), Sosa (609) and McGwire (583). Rodriguez, who served a yearlong drug suspension in 2014, remains active. Thome’s first appearance on the ballot will be in 2018.

Curt Schilling rose from 39 percent to 52, Edgar Martinez went from 27 percent to 43 and Mike Mussina rose from 25 percent to 43.

Jeff Bagwell missed election to the Hall of Fame by just 15 votes. 2006 Associated Press file photo

Jeff Bagwell missed election to the Hall of Fame by 15 votes.
Associated Press file photo

Griffey was known simply as “Junior” by many as a contrast to his father, three-time All-Star outfielder Ken Griffey, who played alongside him in Seattle in 1990 and ’91. The younger Griffey became a 13-time All-Star outfielder and finished with 630 homers, which is sixth on the career list. After reaching the major leagues in 1989, he was selected for 11 consecutive All-Star Games.

Now, he’s headed to Cooperstown.

“In case you don’t know, I’m really superstitious. I’ve played in the Hall of Fame game three times and I’ve never set foot in the building. I’ve never even seen the front of it,” Griffey said. “The one time I wanted to go in there, I wanted to be a member.”

Wanting to play closer to his home in Florida, he pushed for a trade to Cincinnati — his father’s old team and the area he grew up in— after the 1999 season. But slowed by injuries, he never reached 100 RBIs again after his first season with the Reds, and he moved on to the Chicago White Sox in 2008 before spending his last season-plus with the Mariners.

Tim Raines missed election to the Hall of Fame by 23 votes. A candidate needs 75 percent of the votes to get elected. 2001 Associated Press file photo

Tim Raines missed election to the Hall of Fame by 23 votes. A candidate needs 75 percent of the votes to get elected.
Associated Press file photo

While Griffey was selected first in the 1987 amateur draft and became the first No. 1 to make the Hall, Piazza was selected by the Los Angeles Dodgers with the 1,390th pick, in the 62nd round in 1998. Since the draft started in 1965, the lowest draft pick elected to the Hall was John Smoltz, taken with selection 574, in the 22nd round in 1985.

Piazza became the top offensive catcher in big league history, hitting better than .300 in nine straight seasons and finishing with 427 home runs, including a record 396 when he was in the game behind the plate. The 12-time All-Star finished with a .308 career batting average.

After reaching the major leagues with the Dodgers in 1992, Piazza was dealt to Florida in May 1998 before he could become a free agent, then traded eight days later to the Mets. He remained with New York through 2005, hitting a memorable go-ahead home-run in the first game in the city following the 2001 terrorist attacks, then finished with San Diego in 2006 and Oakland the following year.

Piazza and Bagwell were drawn into the steroids controversy by some who pointed out their powerful physiques, but both have denied using performance-enhancing drugs and no substantive accusations have been made.