Expedia, Booking.com, Agoda, Hotels.com, ebookers and trivago have been investigated over pressure selling and misleading discount claims, the competition watchdog says.
The Competition and Markets Authority (CMA) was concerned the sites were making rooms seem more popular than they were.
The sites will now say if commissions they receive affect the results.
They also agreed to be clearer with discount claims and hidden charges.
The CMA began its investigation in June 2018 but didn't name the comparison sites it was investigating.

"The CMA has taken enforcement action to bring to an end misleading sales tactics, hidden charges and other practices in the online hotel booking market," said CMA Chairman Andrew Tyrie.
"These have been wholly unacceptable."
The CMA will now seek to make the rest of the sector follow the same rules as the six companies it has named, it said.
Consumer action group Which? welcomed the CMA's intervention and said the changes should be "swiftly implemented".
The companies have all now agreed to the following, the CMA said:
Not all of the six companies had fallen foul of all four of these bad practices, the CMA said.
"You can get some good bargains on these sites, but it is very important that you can trust what they say," Michael Grenfell, executive director of enforcement at the CMA told BBC Radio 4's Today programme.
"We will monitor them," he added.
The companies have until 1 September to comply with the demands, otherwise they could be taken to court.

Have you been affected by pressure selling and misleading discount claims on hotel booking sites? Email us at [email protected]. Please include a contact number if you are willing to speak to a BBC journalist. You can also contact us in the following ways: Source: bbc.com