historian said:
All of the following levels and hit dice are reported in 1st Ed. AD&D terms.
Its difficult to get proper divine levels for 1st Ed. But eyeballing it...
Gandalf the Grey - Level 27 Wizard = Quasi-deity
The Nazgul
The Witch-king - Level 40 Wizard = Lesser Deity
Khamul - Level 33 Ranger = Demi-deity
Dwar - Level 26 Mage = Quasi-deity
Indur - Level 25 Mage = Quasi-deity
Akhorahil - Level 24 Sorcerer = Quasi-deity
Hoarmurath - Level 22 Animist = Quasi-deity
Adunaphel - Level 21 Bard = Quasi-deity
Ren - Level 21 Illusionist = Quasi-deity
Uvatha - Level 21 Fighter = Quasi-deity
The Forces of Darkness
Melkor/Morgoth - Level 333 Mage/Alchemist = Demiurge
Ungoliant - 300 Hit Dice (333 after draining the Wells of Varda) = First One/Demiurge
Sauron - Level 80 Mage/Sorcerer (in hiding w/o The One Ring) = Greater Deity (Pantheon Head)
Sauron - Level 120 Mage/Sorcerer (as Necromancer of Mirkwood) = Elder One
Sauron - Level 160 Mage/Sorcerer (before the One Ring was made) = Old One
Sauron - Level 240 Mage Sorcerer (with the One Ring) = First One
The Balrog of Moria - 24 Hit Dice = Quasi-deity
The Balrog Gothmog - 67 Hit Dice = Greater Deity (technically Intermediate Deity but that term didn't exist in 1st Ed.)
Saruman the Many Colored - Level 33 Mage/Alchemist = Demigod
I don't know enough about Middle Earth to know if the above divine designations are accurate.