Scanning tunneling microscopy and spectroscopy (STM-STS) measurements have been carried out on the α (FeOCl)-type K x TiNCl (x ∼ 0.5, T c = 16 K) and β (SmSI)-type HfNCl y (y ∼ 0.7, T c = 24 K) layered nitride superconductors. The STM images at 5 K showed clear atomic arrangements for both the compounds, namely, the rectangular lattice on α-K x TiNCl and the triangular lattice on β-HfNCl y. The tunneling spectra in the superconducting states at low temperatures demonstrate qualitatively different features between these superconductors. For α-K x TiNCl, the spatial distributions of the density of states and the superconducting gap structures are very inhomogeneous, while those on β-HfNCl y are found to be almost homogeneous. The nanoscale electronic features between these compounds correlate with the different lattice structures of the M (=Ti or Hf) N conducting layers, which are caused by the lattice symmetry difference itself or induced by the difference in the local doping distributions in these chemically reactive compounds. The averaged gap magnitudes in the superconducting states,¯ 10.2 meV and 7.5 meV for α-K x TiNCl and β-HfNCl y , corresponding to the gap ratios 2¯ /k B T c 15 and 7.2, respectively, indicate the unusually strong coupling effects of the superconductivity.