Under J.K. Rowling:
* Harry Potter series:
* Harry Potter and the Philosopher's Stone (1997)
* Harry Potter and the Chamber of Secrets (1998)
* Harry Potter and the Prisoner of Azkaban (1999)
* Harry Potter and the Goblet of Fire (2000)
* Harry Potter and the Order of the Phoenix (2003)
* Harry Potter and the Half-Blood Prince (2005)
* Harry Potter and the Deathly Hallows (2007)
* Fantastic Beasts and Where to Find Them (2001) - originally published as a textbook for Hogwarts students, later expanded and released as a novel
* The Casual Vacancy (2012) - a contemporary novel for adults
* The Cuckoo's Calling (2013) - the first book in the Cormoran Strike detective series, published under the pseudonym Robert Galbraith
* The Silkworm (2014) - the second book in the Cormoran Strike series
* Career of Evil (2015) - the third book in the Cormoran Strike series
* Troubled Blood (2020) - the fifth book in the Cormoran Strike series
Under Robert Galbraith:
* The Cuckoo's Calling (2013)
* The Silkworm (2014)
* Career of Evil (2015)
* Lethal White (2018) - the fourth book in the Cormoran Strike series
* Troubled Blood (2020) - the fifth book in the Cormoran Strike series
She has also written several non-fiction books and short stories, including:
* Fantastic Beasts and Where to Find Them: The Original Screenplay (2016) - a screenplay for the film adaptation
* Harry Potter: A History of Magic (2017) - a companion book based on the exhibition of the same name
* Harry Potter: A Journey Through Film (2021) - a behind-the-scenes look at the films
This list only includes her most prominent works. There are also several short stories, essays, and other writings that she has published over the years.