As others have said, the sentence is not in modern English. It comes from a Shakespeare play written in the 1590s. (A very similar saying also occurs in J.R.R. Tolkien's fantasy series Lord of the Rings, in a poem that begins, "All that is gold does not glitter.")
In the sentence "all that glitters is not gold," the word "all" essentially means "all things." The sentence as a whole means "It is not true that all things that glitter are gold." Some things may look valuable (they may "glitter"), but in reality, they have no value (they are "not gold"). They look like gold, but they are actually worthless.
Tolkien's line from Lord of the Rings conveys a similar message, but reversed: "All that is gold does not glitter," meaning "Not everything that is gold glitters" (some gold things do not glitter). Some things are valuable but do not look valuable. You cannot always tell whether something is valuable just by its appearance.