The Massachusetts House has overwhelmingly approved a compromise bill that would allow early voting up to 11 days before Election Day.

The bill would also allow online voter registration and let 16- and 17-year-olds pre-register to vote.

The legislation reconciles separate bills already approved by the House and Senate. The House approved the compromise bill by a 145-4 vote Wednesday.

The legislation would also create an online portal to check voter registration status and allow postelection audits after presidential elections.

Supporters say early voting helps citizens better fit voting into busy schedules. Thirty-two states already allow early voting.

Voting rights groups also said online registration will encourage more people to register.

The bill heads to Senate for a final vote. Gov. Deval Patrick has said he "loves the idea" of early voting.