Dimensions for carry-ons vary by airline, but a good rule of thumb is that any backpack less than 45 liters should fit most airlines (but be careful with ultra-budget airlines — especially in Europe). Any bigger than that, and you risk extra charges.