20 ft: about 33 m³; 40 ft: about 68 m³; 40 ft high cube: about 76 m³ (Hapag-Lloyd figures).
ISO 668 sets the outside: 6,058 mm long for 20 ft and 12,192 mm for 40 ft, 2,438 mm wide, and 2,591 mm high (2,896 mm for a high cube). Hapag-Lloyd's specification gives inside capacities of 33.2, 67.7 and 76.3 m³ and a maximum gross weight of 32,500 kg for all three.
Key takeaways: plan loads on the inside dimensions and the payload of the actual carrier's container, not the ISO outside size, and leave room for pallets and dunnage.