We have screened two Nostoc species inhabiting diverse habitats for the presence of sunscreening mycosporine-like amino acid (MAA) compounds. The identification and characterization of one MAA (RT 3.1–3.8 min, λmax −334 nm) from both Nostoc species were performed using absorption spectroscopy, high-performance liquid chromatography (HPLC), electrospray ionization-mass spectrometry (ESI-MS), Fourier transform infrared (FTIR) spectroscopy and nuclear magnetic resonance (NMR) spectroscopy. Shinorine and porphyra-334 were commonly present in both Nostoc sp. strain HKAR-2 and Nostoc sp. strain HKAR-6. Nostoc sp. strain HKAR-2 also showed the presence of an unknown MAAs with retention time of 6.9 min and a corresponding λmax of 334 nm. Present investigation clearly demonstrated the presence of diverse profile of MAAs in the hot spring cyanobacterium in comparison to the rice field isolate. Thus, Nostoc sp. strain HKAR-2 would be a better source for the production of MAAs that can be used as a potent natural sunscreen against UV-B irradiation.