"Harry Potter" author J.K. Rowling may be one of the top writers working today, but even she faced rejection in the past. Early this morning, she took to Twitter to share her rejection letters with fans to inspire them to keep chasing their dreams no matter what.

Rowling opened up after author Dianne Brubaker tweeted to her that she was an inspiration. Rowling then replied to Brubaker and revealed that she pinned her first rejection letter to her kitchen wall because it gave her something in common with her "fave writers."

Rowling's devoted followers then asked her to share the rejection letters she got when trying to pitch her "Harry Potter" series, but she said they were all buried in a box in her attack. Instead, the author posted two rejection letters she got when she was trying to sell her Cormoran Strike novels, which she wrote under the pseudonym Robert Galbraith.

"I wasn't going to give up until every single publisher turned me down, but I often feared that would happen," she tweeted before sharing the letters.

When Rowling posted her rejection letters, she made sure her fans knew that the purpose of her sharing the letters was for inspiration and not revenge, so she removed all names and signatures from the letters.

"I had nothing to lose, and sometimes that makes you brave enough to try," she later added.

Rowling also noted that one of the publishers who decided not to publish her first Cormoran Strike book, "The Cuckoo's Calling," also rejected "Harry Potter and the Sorcerer's Stone," the first of Rolwing's seven "Harry Potter" books. "The Cuckoo's Calling" was eventually published and went on to sell about 1,500 copies under Rowling's fake name before her identity was revealed. Last year, Rowling opened up about why she wrote under a fake name to publish her adult book series.

"There was a phenomenal amount of pressure that went with being the writer of 'Harry Potter,' and that aspect of publishing those books I do not particularly miss," Rowling said. "So you can probably understand the appeal of going away and creating something very different, and just letting it stand or fall on its own merits."