Everyone wants to be happy at work.

The career site Comparably recently analyzed its data to find out what large US companies have the happiest workers.

HubSpot took the top spot, and several tech companies fared well in the rankings.

Who doesn't want to work in a happy environment?

When you're miserable, any job will seem terrible. So it's important to find a workplace that's a pleasant place to be.

So how can you separate companies with genuinely happy employees from the firms with cheery social-media feeds that don't reflect reality?

Comparably, a compensation and careers site, recently ranked what it found to be the happiest large companies in the US. It based the results on anonymous employee reviews of companies with over 500 employees posted on its site between September 2017 and September 2018. At least 50 employees had to leave reviews for a company to be considered.

The survey included several questions pertaining to workplace happiness and accrued 5 million ratings across 45,000 US companies. As it turns out, tech companies fared well in the rankings.

Here's a look at the companies that boasted the happiest employees: