mech2Foam is a Python code for generating gas mixture specific input parameters needed for XiFoam simulations. For the thermopysical properties, the code generates NASA polynomial coefficients (Cp, H, S) and sutherland coefficients for dynamic gas viscosity. The laminar burning velocity are modeled by the Gülder equation and the code generates Gülder coefficients for fuel and oxidizer. Other CFD codes that can use the same input data can utilize this code.