The novel organic-inorganic hybrid materials (C5H7N4)2 [SnCl6] 2- (1) and (C5H7N4)2 [SnBr6]2-(2) have been synthesized and characterized by single-crystal X-ray diffraction at room temperature. Both compounds demonstrate the crystal system was triclinic with Pī space group. Hirshfeld surface analysis investigate the intermolecular interactions and crystal packing derived by single-crystal XRD data reveals the closer contacts associated with strong interactions. Infrared spectrum of both compounds shows the NH stretching band at 3396 cm−1 which indicates a protonated amine group. The product crystals optical characteristics were inspected using UV–visible and photoluminescence spectroscopy. The thermal characteristics were evaluated simultaneously using thermogravimetric (TG) and differential thermal analysis. Tin formal oxidation state was determined as +4 through bond valence sum calculations and CSM shows the ideal octahedral geometry of the anions. DFT calculations utilizing the B3LYP method with the LanL2DZ basis set provide optimized geometries and molecular electrostatic potential maps. We explored the energy difference between (HOMO) and (LUMO) orbitals to understand molecular electrical transport capabilities. The biological activity of the investigated compounds are examined against pathogens which indicates efficacy against bacterial strains.