I think (i emphasize THINK) that the sorting hat is a boy/male. I believe this because in the movies it has a low voice, and it's attitude and what it says is masculine.
Yet, i believe that the Harry Potter books are up for your interpretation, and there is no right or wrong answer to what your imagination conjures as a picture in your mind.
Leslie Phillips
a top hat with yellow bright shining stars on it. Green pink yellow and blue any color that suits YOU!!! x
Yes! The sorting hat could talk!
I'm thinking its a boy due to the sailor hat similar to Popeye's. My little boy is going to be sweet pea this Halloween so at least I'm hoping Sweat Pea is actually a boy!
Hermione Granger was placed in Gryffindor House by the Sorting Hat, along with her (eventual) best friends Harry Potter and Ron Weasley. She does, however, note in Harry Potter and the Order of the Phoenix that the Sorting Hat strongly considered placing her in Ravenclaw House, which is famed for the intelligence of its students.
Hogwarts' sorting hat
The sorting hat is a hat from Harry Potter. It decides what group they are in. It is a dark brown hat with a mouth.
The hat is called the Sorting Hat. When placed on an incoming students head, the Sorting Hat looks at their personality and decides which Hogwarts house is best.
Leslie Phillips
The sorting hat
Voldemort
Harry spoke to the sorting hat in the first and second movie.
the Sorting Hat Song
The sorting hat's song changes every year. So maybe.
One can purchase a Harry Potter Sorting Hat from various websites like Amazon or eBay. Both websites offer a great amount of products, including a Harry Potter Sorting Hat.
Pottermore.com
It's chapter seven, book 1, the name of the chapter is The Sorting Hat, and it's on page 113.