Founding and Lunar Strain
In Flames was founded in 1990 by Jesper Strömblad as a side project from his then-current death metal band, Ceremonial Oath. His purpose was to write songs with a more melodic musical direction, something which he was not allowed to do in Ceremonial Oath. In 1993, Strömblad decided to quit Ceremonial Oath due to musical differences and began focusing more on In Flames. That same year, Strömblad recruited Glenn Ljungström on guitar and on bass guitar to form the first official In Flames line-up.
The trio recorded a demo in August 1993 and sent it to Wrong Again Records. In order to increase their chances of getting signed to the label, the group lied and said they had thirteen songs already recorded, when in fact they only had three. The owner of the label enjoyed the music, and immediately signed them to the label.
After being signed, work on the band's debut album began. The album, titled Lunar Strain, was recorded in Studio Fredman and released in August 1994. Since the band did not have a vocalist yet, Strömblad asked Mikael Stanne of Dark Tranquillity to provide session vocals. Many other session musicians participated in the recording as well, including guitarists Anders Iwers, Carl Näslund, and Oscar Dronjak (the latter of which provided backing vocals), vocalist Jennica Johansson, and violinist Ylva Wåhlstedt.
During 1994, In Flames recorded and self-produced their first EP, Subterranean, in Studio Fredman. In Flames still did not have a vocalist yet, so session vocals were provided this time by . In 1994, the band covered the song "Eye of the Beholder" for the Metallica tribute album
Metal Militia - A Tribute to Metallica. In 1995, Subterranean was released. Subterranean garnered much attention and led the band to acquire a record deal with Nuclear Blast.
The Jester Race
In 1995, In Flames became tired of using session musicians to record an album or to do live shows, so the trio asked Björn Gelotte to join the band as the full-time drummer, and 6 months later asked Anders Fridén to join the band as the full-time vocalist. That same year, the new line up recorded the band's second studio album, The Jester Race (Released in 1996). This album was recorded once again in Studio Fredman, but unlike previous albums, it was co-produced by the studio's owner, Fredrik Nordström. Gelotte also provided some lead and acoustic guitars for the album. Afterwards, In Flames toured with Samael, Grip Inc., and Kreator.
In 1997, In Flames recorded and released their third studio album, Whoracle. This album was recorded once again in Studio Fredman and co-produced by Nordström. Once again Gelotte provided lead and acoustic guitars for the album. Ljungström and Larsson unexpectedly announced that they were leaving In Flames after the album was recorded. Niklas Engelin and Peter Iwers were recruited to fill in the vacant spots on guitar and bass respectively, during a tour with Dimmu Borgir. After the tour both Engelin and Iwers were asked to join the band as permanent members, to which they agreed. With the new line-up, In Flames then proceeded with a European tour and played their first two shows in Japan. However, by the end of that tour in 1998, Engelin quit In Flames, so the band decided to switch Gelotte from his position as drummer to guitarist, and they recruited Daniel Svensson to take over as drummer.
In 1999, the new line-up recorded and released the band's fourth studio album, Colony. This album was recorded once again in Studio Fredman and co-produced by Nordström. The second solo on "Coerced Coexistence" was recorded by Kee Marcello. Afterwards, In Flames toured Europe, Japan, and played their first show in the United States during the Milwaukee Metal Fest.
Clayman and The Tokyo Showdown
In 2000, In Flames recorded and released their fifth studio album, Clayman. It was recorded in the same studio as their previous releases and again co-produced by Nordström. Afterwards, In Flames toured with Dream Theater, Slipknot, and Testament. In August 2001, In Flames released The Tokyo Showdown, a live album recorded during the Japanese tour in November 2000.
Reroute to Remain
In 2002, In Flames recorded and released their sixth studio album, Reroute to Remain. Unlike all of In Flames' previous albums, Reroute to Remain was not recorded in Studio Fredman or produced by Nordström. The album was produced by Daniel Bergstrand and recorded in a house the band rented in Denmark, except for the drums which were recorded at Dug-Out studio. Reroute to Remain represented a major stylistic shift for In Flames music, in the addition of clean vocals, catchier choruses and less growling. It was also their first album to have official singles released from it. That year the band toured with Slayer, Soulfly, and Mudvayne.
Soundtrack to Your Escape
In 2003, In Flames recorded their seventh studio album, Soundtrack to Your Escape, and released it in 2004. Like with Reroute to Remain, the majority of the album was recorded in a house that the band rented in Denmark, with the drums recorded in Dug-Out Studio. This album was also produced by Bergstrand. Soundtrack to Your Escape increased the band's popularity considerably, selling 100,000 copies in the United States and yielding a No. 2 single on the Swedish charts with The Quiet Place. Four music videos were filmed: "The Quiet Place", "My Sweet Shadow", "F(r)iend" and "A Touch of Red", all of which were directed by Patric Ullaeus. The ensuing world tour saw the band make their first trip to Australia, where they played to mostly sold out crowds. Afterward, In Flames toured with Judas Priest, Mötley Crüe, and Motörhead. In Flames was also featured on the main stage at Ozzfest 2005.
In 2005, In Flames recorded and self-produced their eighth studio album, Come Clarity, in Dug-Out studio. That same year, In Flames released Used and Abused: In Live We Trust, a box set consisting of material filmed and recorded throughout various live performances during 2004. The DVD was filmed, edited and directed by Ullaeus. Also in 2005, In Flames decided to sign with an additional record label, Ferret Music, so future releases could have better distribution in North America. In 2006, Come Clarity was released in North America through Ferret Music and elsewhere through Nuclear Blast. It became the band's first No. 1 album on the Swedish charts. A bonus DVD of In Flames playing all the songs in a rehearsal studio was also released. Ullaeus directed their music video for "Take This Life". That same year, In Flames toured with Sepultura, co-headlined a U.S. tour with Lacuna Coil, joined The Unholy Alliance Tour, was one of the headliners on the Sounds of the Underground tour, and played on the main stage at Download Festival. In 2007, the band played in Dubai for the annual Dubai Desert Rock Festival. In Flames also played at Bloodstock Open Air festival in August 2007.
A Sense of Purpose
In Flames at House of Blues, New Orleans LA on 27 September 2009
In October 2007, In Flames finished recording their ninth studio album in IF Studios, their own studio located in Gothenburg, Sweden (formerly Studio Fredman). During the recording sessions, the band released studio diaries documenting the recording process. On 23 January 2008, the band confirmed that they had recorded a video for the single "The Mirror's Truth", and posted photos from the video on their official Myspace profile. In Flames were featured on the Gigantour 3 North American tour with Megadeth, Children of Bodom, Job for a Cowboy, and High on Fire.
On 4 April 2008, In Flames released their ninth studio album, A Sense of Purpose. The first single from the new album was titled "The Mirror's Truth" and was released in Europe on 7 March 2008. In June 2008, In Flames performed at Metaltown Festival, Metalcamp, Graspop Metal Meeting, Nova Rock Festival, Rock am Ring and Rock im Park, Gigantour and Download Festival. In late August 2008, In Flames filmed a video for the second single, "Alias", once again directed by Ullaeus. From January 2008 to December 2009 In Flames toured on the A Sense of Purpose Tour.
On 3 February 2009, the band announced that Strömblad would not be participating in the Australia/South America/Japan tour in order to get treatment for his alcohol abuse problems. Engelin was announced as his replacement for the tour. On 18 February, the band announced their United Kingdom and Ireland tour would not go ahead as planned due to Strömblad's alcohol rehabilitation and the birth of Iwers's child. On 4 March, the band announced that the third single from A Sense of Purpose is the track "Delight and Angers". The video premiered on the band's Myspace on 25 March. It was once again directed and produced by Ullaeus. Alex Pardee did the artwork for the song like he did with all of A Sense of Purpose.
The band joined with Killswitch Engage, Dead by April, Every Time I Die and Maylene and the Sons of Disaster for the UK leg of the Taste of Chaos 2009 tour in November 2009.
Sounds of a Playground Fading
The departure of guitarist and founding member Jesper Strömblad was announced on the band's MySpace on 12 February 2010. The parting was on good terms with Strömblad, stating that "I'm determined to fight and defeat my demons once and for all...", with the remaining band members backing his decision, though in a more recent declaration Fridén stated that their relationship with Strömblad was not going well. On 28 February 2011, it was announced that Engelin had re-joined the band to take the vacant spot left by Strömblad's departure.
In early 2010, In Flames collaborated with Pendulum on their third studio album Immersion. The song "Self Versus Self" is one of three collaborations on the album.
On 11 October 2010, In Flames entered IF Studios in Gothenburg to start recording their new album, tentatively titled Sounds of a Playground Fading. On 25 January 2011, the band announced that the recording of their new album was finished and that the album was being mixed. The album was recorded with producer Roberto Laghi.
To support the album, In Flames performed at the Sonisphere Festival in Knebworth, and alongside Megadeth, Trivium, Machine Head, Godsmack, and Disturbed at the Mayhem Festival 2011. They also played at Hellfest Festival 2011, headlining the second main stage, and Nova Rock Festival in Austria.
In March 2011, In Flames signed with Century Media Records. On 6 April 2011, In Flames announced their newest single, "Deliver Us", was slated for a May release. For part of the European tour, Jonas Ekdahl of DeathDestruction filled in for Svensson on drums, after Svensson's decision to remain in Sweden for a time following the birth of his child.
Sounds of a Playground Fading was released in Sweden on 15 June 2011, on 17 June 2011 in Germany, Austria, Switzerland and Norway, on 20 June 2011 in the UK, Benelux, France, Greece, Denmark and Portugal, on 21 June 2011 in North America, Spain and Italy, on 22 June 2011 in Finland, Hungary and Japan, and on 24 June 2011 in Australia and New Zealand. A video was made for "Deliver Us". It was filmed in Gothenburg, and was again directed by Ullaeus, who also directed the second video from Sounds of a Playground Fading, "Where the Dead Ships Dwell".
In an interview at Canada's Heavy MTL festival on 12 August 2012, frontman Anders Fridén revealed that In Flames will "start thinking about" recording their next studio album in 2013.
Siren Charms and Sounds from the Heart of Gothenburg
In Flames began recording their eleventh studio album in August 2013. On 10 April 2014, the In Flames website appeared to have been hacked. The alleged hacker threatened to leak information the next day. The band posted on its Facebook, saying, "We have encountered some issues regarding our online platforms. We want to assure you that no Jesterhead member information has been compromised, and our team is working on a solution right now. We apologize for the inconvenience." However, the site was not really hacked. The following day, the band's website was updated with a link to the supposed leak. A short video announced that the new album will be titled Siren Charms. The album was released on 9 September 2014, via the band's new label, Epic Records. Siren Charms includes vocals recorded by fans. Following release of the album they started a World tour, set to last throughout 2015. On 12 October 2014 the band officially announced on their Facebook page that they are to release a brand new Live Blu-ray/DVD and CD set based on their show in Gothenburg, which took place in November 2014 and was officially released on 23 September 2016 titled 'Sounds from the Heart of Gothenburg'. Longtime drummer Daniel Svensson announced his departure from the band to focus on his family life on 7 November 2015.
In early 2016, In Flames began recording a new album in Los Angeles, and finished the recording in April.
On 25 August 2016, In Flames posted a YouTube link to a new song entitled "The End" along with a new profile picture with the In Flames logo accompanied by the word "Battles". It was later revealed the same day that Battles will be the title of their twelfth studio album, and was released worldwide on 11 November 2016 through Nuclear Blast.
On 17 September 2016 the band announced on their Facebook page that Joe Rickard, formerly of American rock band RED, who performed session drums on Battles is now the new permanent drummer, replacing Daniel Svensson.
On 29 November 2016, Peter Iwers announced the tour supporting Battles would be his last with In Flames. This leaves just Anders and Björn as the only members left in the band who have constantly remained in the lineup since the 1990s. Bassist Håkan Skoger, who previously worked with Friden on his side project 'Passenger', played live with the band on their first UK tour date in Scotland. The band then recruited bassist Bryce Paul to play bass on their American tour.
In December 2017, In Flames released 'Down, Wicked, and No Good' EP, which included three covers and a live performance. 
On 5 July 2018, it was announced the band recruited Tanner Wayne as the new drummer, replacing Joe Rickard.
I, the Mask
On 14 December 2018, In Flames announced their 13th album entitled I, the Mask would be released on 1 March 2019. As part of this announcement they released two singles from the upcoming album entitled "I Am Above" and "(This Is Our) House". The music video for "I Am Above" features Swedish actor Martin Wallström and doesn't show any members of the band. The lyric video released for "(This is our) House" features live concert footage from "Borgholm Brinner" music festival in Sweden.
According to guitarworld.com the album was produced by Howard Benson, mixed by Chris Lord-Alge and mastered by Ted Jensen. On 10 January 2019 the lyric video for "I, the Mask", the title track off of the album, was released via the Nuclear Blast Records YouTube channel.