How to find out about an unknown file extension

file extension

When I have a random file of unknown format with a file extension I've never heard of, where can I turn to find out about the extension. The obvious choice is to google the extension along with some combination of the words "file", "extension", and so on, but that just yields pages of spam websites peddling anti-virus ("Fix virus problems related to XYZ files!"). Is there any better way?

Related Question