Onion powder is made by grinding dehydrated onion into a powder. It isn't as pungent as fresh onions, but it's a great time-saver.
Garlic powder is dehydrated ground garlic, and provides some of the flavour, but not the texture, of fresh garlic. It disperses well in liquids, so it's a good choice for marinades.