Vitamin B3, also known as niacinamide, may be used as a sunscreen by ingesting it or applying a solution of it to the skin. Studies have shown that it can reduce the risk of sunburn and other skin damage caused by UV radiation. Vitamin B3 is available over-the-counter in the form of tablets, capsules, and topical creams.