The purpose of this study is to investigate whether nicotinamide riboside (NR) can improve inflammation and cognitive function in diabetic mice. ICR male mice were fed for 14 weeks with either high-fat chow diet (HF, 60% kcal fat) or standard chow diet (CON, 10% kcal fat). HF, streptozotocin, and nicotinamide were used to induce hyperglycemia. NR or vehicle was delivered via stomach gavage for six weeks. Oral glucose tolerance test, Y-maze test, and nest construction test were conducted before and after the NR treatment period. NR treatment induced down-regulation of NLRP3, ASC, and caspase-1. NR reduced IL-1 expression significantly by 50% in whole brains of hyperglycemic mice. Other inflammatory markers including TNF-α and IL-6 were also attenuated by NR. Brain expression of amyloid-β precursor protein and presenilin 1 were reduced by NR. In addition, NR induced significant reduction of amyloid-β in whole brains of diabetic mice. NR treatment restored hyperglycemia-induced increases in brain karyopyknosis to the levels of controls. Nest construction test showed that NR improved hippocampus functions. Spatial recognition memory and locomotor activity were also improved by NR supplementation. These findings suggest that NR may be useful for treating cognitive impairment by inhibiting amyloidogenesis and neuroinflammation.