Nanocellulose- and alginate-based hydrogels have been suggested as potential wound-healing materials, but their utilization is limited by the Food and Drug Administration (FDA) requirements regarding endotoxin levels. Cytotoxicity and the presence of endotoxin were assessed after gel sterilization using an autoclave and UV treatment. A new fingerprinting method was developed to characterize the compounds detected in cellulose nanocrystal (CNC)- and cellulose-nanofiber (CNF)-based hydrogels using both positive- and negative-ion mode electrospray ionization Fourier transform ion cyclotron resonance mass spectroscopy (ESI FT-ICR MS). These biobased hydrogels were used as scaffolds for the cultivation and growth of human dermal fibroblasts to test their biocompatibility. A resazurin-based assay was preferred over all other biocompatibility methodologies since it allowed for the evaluation of viability over time in the same sample without causing cell lysis. The CNF dispersion of 6 EU mL-1 was slightly above the limits, and it did not affect the cell viability, whereas CNC hydrogels induced a reduction of metabolic activity by the fibroblasts. The chemical structure of the detected endotoxins did not contain phosphates, but it encompassed hydrophobic sulfonate groups, requiring the development of new high-pressure sterilization methods for the use of cellulose hydrogels in medicine.