The name is spelled יהוה
In Hebrew, God’s personal name is written with four consonants: yod (י), he (ה), vav (ו), and he (ה). In English letters this is transliterated as YHWH.
Because it has four letters, the name is called the Tetragrammaton. The word comes from Greek and means “four letters.” Like all Hebrew text, the name is read from right to left, so the first letter you read is the yod on the right.
Why it is usually not spoken aloud
Many Jewish people do not pronounce the name aloud. When they read it in a text, they say Adonai instead, which is usually translated as “the Lord.”
The original pronunciation is not known with certainty. Scholars often reconstruct it as “Yahweh,” but that is a reconstruction, not a settled fact.
Why the vowel marks do not match the spelling
In printed Hebrew Bibles, the vowel marks written under the name are the vowels of Adonai, not the vowels of YHWH. This is one reason the name is not read the way it is spelled. Readers who see the vowel marks should not assume they show how the name was said.
Writing God in English: G-d or God
Many observant Jewish writers spell God as “G-d” in English, leaving out the o. This is a way of showing respect for the name. Other writers, including many who are not Jewish, write “God.” Non-Jewish readers and writers can choose either spelling, since the practice is not required of everyone.
If you are writing the name yourself
If you are copying the name for study, copy the four letters exactly as shown. For the vowels or how to read the name aloud, check a Hebrew Bible with a teacher or a trusted commentary. If you are writing the name for a religious setting, follow the practice of your own community or tradition.