Li2PtH6 and Na2PtH6 are good candidate for hydrogen storage. The structural, elastic, electronic and optical properties of Li2PtH6 and Na2PtH6 compounds have been investigated using pseudo-potential plane-wave method based on the density functional theory. Computed lattice constant and H atom positional parameter at equilibrium agree well with the available experimental data. A quadratic pressure dependence of the elastic stiffness is found. A set of isotropic elastic parameters and related properties, namely bulk and shear moduli, Young's modulus, Poisson's ratio, average sound velocity and Debye temperature are numerically estimated in the framework of the Voigt-Reuss-Hill approximation for Li2PtH6 and Na2PtH6 polycrystalline aggregate. The analyses of the band structure indicates that Li2PtH6 and Na2PtH6 are indirect gap semiconductors. The static dielectric constant and static refractive index are inversely proportional to the fundamental gap. (C) 2012 Elsevier Inc. All rights reserved.