A brainy NYU student has cooked up a magic gel that he says can stop even heavy bleeding — an invention that could make routine bandages obsolete.

Joe Landolina, 20, an Ulster County native and NYU junior, says his Veti-Gel almost instantly closes and begins healing even major wounds to internal organs and key arteries.

“There’s really no way to quickly stop bleeding except to hold lots of gauze on a wound,” Landolina told The Post. “I thought if you could pour this gel into a wound, it would solidify and stop the bleeding.”

Landolina, who is simultaneously pursuing a bachelor’s degree in biomolecular and chemical engineering and a master’s in biomedical engineering, created the substance with Isaac Miller, a 2013 NYU grad.

The precocious entrepreneur first honed his scientific chops working at his grandparents’ winery, Baldwin Vineyards, in upstate Pine Bush.

“Once I realized this was what I wanted to do, I would spend nights in the library, reading about polymer science and about the biology of a wound,” he said.

The lifesaving goo is an artificial version of something called the extracellular matrix, which makes up the connective tissue that helps hold animal bodies together.

“We use plant-derived versions of the polymers that make up your skin,” the whiz kid said. “If they go into a wound, they build on existing polymers. It’s like it tells your body to stop bleeding.”

The aspiring scientist says he tested the stuff on rats and was able to stop bleeding instantly after slicing the rodents’ livers and carotid arteries.

After his rat experiments, Landolino moved on — to a slab of fresh pork loin — to create a video demonstration.

“I went to my neighborhood butcher in Brooklyn and said I needed the freshest meat you have, and it was pork loin,” he said.

On the video, he cuts a deep slice into the pork while it’s being injected with “real pigs blood,” he said.

The blood initially flows freely, but amazingly stops after Landolino applies the gel and a second liquid, which speeds coagulation, bringing the bloodshed to a sudden stop.

Landolina and Miller will next test the gel on larger living animals, like pigs and sheep, under the supervision of Dr. Herbert Dardik, a cardiovascular surgeon at Englewood (NJ) Hospital.