2018–2022: Magdalene and Caprisongs
Barnett appeared on ASAP Rocky's album Testing in 2018, featuring on the track "Fukk Sleep". On 24 April 2019, she released the single "Cellophane", her first release since "Good to Love" in 2016. In September, Barnett announced that her second album, co-produced with Nicolas Jaar among others, would be titled Magdalene, supported by second single "Holy Terrain" (featuring Future) on 9 September. On 7 October, she released the third single, "Home with You", and announced that the album would be delayed until 8 November. The fourth single, "Sad Day", was released on 4 November.
Magdalene was released in November 2019. It received universal critical acclaim. The album ranked No. 1 on four year-end lists (The A.V. Club, Clash, Now, and Time) and in top-five of seven other lists. The same day, the film Honey Boy, in which Barnett played Shy Girl, had a commercial premiere. The film received positive reviews from critics. In 2020 she appeared in an OnlyFans-inspired music video for the song "Sum Bout U" with rapper 645AR. The video for "Sad Day", directed by Hiro Murai, premiered on 28 August. In September, Barnett received four nominations for the 2020 UK Music Video Awards, "Sad Day" won later the best cinematography in a video.
In October, Barnett took part in a virtual chat on the Grammy Museum's Programs at Home series. During the chat, she revealed that she was "just finishing" a new album that she made largely in collaboration with Spanish musician and producer el Guincho, and with other collaborators, many of whom she met for the first time via FaceTime calls. In November, British singer Dua Lipa hosted a live stream concert, titled Studio 2054, in which Barnett was invited to play as a guest. The two teased an upcoming collaboration, titled "Why Don't You Love Me", during Barnett's performance.
On 25 January 2021, Barnett announced the single "Don't Judge Me", featuring rapper Headie One and producer Fred Again, to be released the next day alongside a video co-directed by director Emmanuel Adjei and herself. The same day, she took part in a podcast episode with Louis Theroux and discussed her previous known relationships and an upcoming album, stating "It was all via the internet... I have more collaborations and features on this album than I ever had before." In February, she described the album as a "going out" record, and revealed it would feature collaborations with Nigerian Afrobeats musician Rema, British rapper Pa Salieu. A few days later, Barnett, interviewed by British actress and screenwriter Michaela Coel, revealed that she had changed the undisclosed, original title of the upcoming record due to a well-known artist titling a non-musical project the same thing. In an interview with Vogue in May, Barnett revealed the album does not have a set release date, but wanted to release it in the northern summer of 2021. In July 2021, Barnett directed the music video for Koreless' "White Picket Fence" single.
Barnett joined the FKA Twigs Discord server in September 2021 and shared details about the upcoming record. Barnett confirmed the project to be a mixtape, and listed el Guincho, Koreless, and Arca, as well as new collaborators American hip-hop producer Mike Dean and Canadian pop producer Cirkut, as producers for the project. She additionally teased a collaboration with Swedish rapper Yung Lean on Instagram.
Barnett released the single "Measure of a Man", featuring British rapper Central Cee, in November 2021, which appears as part of the film soundtrack for The King's Man. "Tears in the Club" featuring Canadian singer the Weeknd was released on 16 December. The song was her first release under Atlantic Records and served as the lead single from her mixtape, titled Caprisongs, which was released on 14 January 2022. Caprisongs also includes appearances from Pa Salieu, Daniel Caesar, Rema, Jorja Smith, Unknown T, Dystopia and Shygirl. Barnett was awarded Godlike Genius at the 2022 BandLab NME Awards in March, where she also performed "Meta Angel", and "Tears in the Club". She additionally featured on Yung Lean's Stardust album in April.