2012–2018: Early work and Kingsman films
Egerton performed in a stage production of the play The Last of the Haussmans at the National Theatre in London in 2012. After appearing in the crime drama series Lewis, he was cast as the lead role in Matthew Vaughn's Kingsman: The Secret Service, an action comedy film adaptation of the comic book The Secret Service by Mark Millar and Dave Gibbons, in 2013. He portrayed English war nurse Vera Brittain's younger brother, British Army officer Edward, in the 2014 biographical drama film Testament of Youth, earning a nomination for Best British Newcomer at the BFI London Film Festival.
In December that year, Kingsman: The Secret Service premiered at the film event Butt-Numb-A-Thon in Texas, United States. The film received a wide international release in February 2015, garnering favourable reviews that described it as "fun, stylish and subversive" as well as grossing over $400 million. Writing for TheWrap, James Rocchi deemed Egerton to be "a naturally charismatic presence" as Gary "Eggsy" Unwin, a recruit for an espionage organisation. Egerton rose to fame with the role; in 2026, he revealed that filming had been a difficult process with Vaughn repeatedly sending him home and threatening to fire him, as he had recently broken up with his girlfriend and had been "aggressively partying" to cope. Later in 2015, he played Edward "Mad Teddy" Smith in the biographical crime film Legend, with Tom Hardy starring as both Kray twins. According to Egerton, he considered it his "job" to "subvert" the hyper-masculinity in the film, as he was portraying one of the twins' lovers. The Hollywood Reporter's Leslie Felperin gave Legend a negative review and criticised its "incoherent" tone and acting, though she remarked that Egerton's performance as Smith is "admittedly[...] one of the film's brighter sparks".
At the 69th British Academy Film Awards in 2016, Egerton received a nomination for the BAFTA Rising Star Award. In the same year, he played ski-jumper Eddie the Eagle in the eponymous biopic and voiced Johnny, a passionate gorilla, in the animated musical film Sing. Egerton reprised the role of Eggsy in the film Kingsman: The Golden Circle, a sequel to Kingsman: The Secret Service, released the following year. It drew a mixed response from critics. In 2018, he starred in the crime drama film Billionaire Boys Club and played the title character in the action-adventure film Robin Hood. Both films were commercial failures and panned by critics. In the following year, Egerton claimed that Robin Hood had been pitched to him differently and that the film "lost its vision". He attributed his involvement in Billionaire Boys Club and Robin Hood to monetary reasons.