A plan to get 17-year-olds out of adult jails in Queensland has succeeded after the laws were passed on Thursday night.

Just before 10pm, the Youth Justice and Other Legislation (Inclusion of 17-year-old Persons) Amendment Bill passed the House.

17-year-olds will be removed from Queensland's jails, after new laws pass parliament.

The bill will increase the upper age of a child from 16 to 17 years and establish a regulation-making power to transfer 17-year-olds from the adult criminal justice system to the youth justice system.

With Labor and the LNP tied on 40 votes for yes and 40 votes for no, it came down to the crossbenchers to pass the bill.