J.K. Rowling said Hermione Granger was partly based on her own experiences at school.
Hermione is one of Harry Potter’s closest friends and is portrayed as exceptionally studious, prepared, and determined. She often supplies research and logical reasoning that help Harry and Ron solve problems, while also challenging unfair treatment of people and magical creatures.
Rowling has described Hermione as a version of herself at a younger age, particularly in relation to insecurity, academic effort, and a tendency to be a “know-it-all.” Hermione is not an exact autobiography, however. She is a fictional character whose experiences, friendships, and moral choices develop across the seven novels.
The character’s name also has a literary connection: Rowling took “Hermione” from Shakespeare’s The Winter’s Tale. Hermione’s Muggle-born status and activism, including her work concerning house-elves, are important parts of her story.