Bednar attendedMars Area High School inMars, Pennsylvania, where he playedbaseball under his father, Andy.[1] He originally committed to playcollege baseball atOhio State University, but later switched his commitment toMississippi State University.[2] As a sophomore in 2017, he spent a majority of the season catching, and pitched only around 15 innings.[3] In 2018, as a junior, he switched to pitching full time and went 8–0 with a 0.64 ERA and 120 strikeouts over 66 innings.[4] As a senior in 2019, his playing time was limited due to a shoulder issue.[5] Bednar was not selected in the2019 Major League Baseball draft, and thus enrolled at Mississippi State.
In 2020, Bednar's freshman year at Mississippi State, he pitched15+1⁄3 innings, striking out 23 and compiling a 1.76 ERA before the remainder of the season was cancelled due to theCOVID-19 pandemic.[6] As a sophomore in 2021, he moved into the starting rotation, going 7–1 with a 3.17 ERA and 109 strikeouts over 15 games (12 starts) for the regular season.[7] He was named to the Newcomer All-SEC Team.[8] During game three of the2021 College World Series, Bednar pitched six innings in which he allowed three walks and zero hits while striking out four, subsequently being named theCollege World Series Most Outstanding Player as Mississippi State won their first ever College World Series.[9] For the 2021 College World Series, Bednar pitched to a 1.47 ERA over18+1⁄3 innings.[10]
Bednar opened the 2022 season ranked as San Francisco's fourth best prospect.[15] He returned to San Jose to begin the season.[16] In mid-June, he was placed on the injured list with a back injury and missed the remainder of the season.[17][18] Over 12 starts for the season, he went 1–3 with a 4.19 ERA, 51 strikeouts, and 22 walks over 43 innings.[19] He was selected to play in theArizona Fall League for theScottsdale Scorpions after the season.[20] Bednar pitched in only four games in 2023 due to back injuries.[21] He was assigned to the Arizona Fall League for the second year in a row after the season.[22]