Hydrogen purity?

In making hydrogen the electrolysis creates oxygen also how do you seperate the hydrogen from the oxygen?
3 answers 3