Robert Burns Woodward, 62 winner of the 1965 Nobel Prize for chemistry who creates such natural products as chlorophyll and cholesterol in a laboratory, died at his home here Sunday after a heart attack.

He was professor of chemisty at Harvard University.

A Harvard spokesman said Dr. Woodward was "universally recognized as the greatest synthetic organic chemist of modern times."

Dr. Woodward and his associates in 1972 completed the synthesis of vitamin B-12, the most complicated molecule to have been made in a laboratory, the spokesman said.

He also helped determine the molecular structure of penicillin, strychnine, terramycin, ferrocine, cevine and magnamycin.

Since 1963, Dr. Woodward had been director of the Woodward Research Institute in Basel, Switzerland, and a member of the board of the Swiss Ciba-Geigy Corporation, a drug firm.

He had been consultant to Polaroid Corp, since 1941. He was a member of the corporation of the Massachusetts Institute of Technology, from which he was graduated in 1936, and the governing board of the Weizmann Institute of Science in Israel.

A year after his MIT graduation, Dr. Woodward, who was born in Quincy, Mass., earned a Ph.D. from the institute. He joined the Harvard faculty in 1941.

He is survived by four children. CAPTION: Picture, ROBERT B. WOODWARD