Toast whole spices for 30-45 seconds by placing them in the hot pan and occasionally shake the pan or stir the spices with a wooden spoon or chopsticks to prevent them from burning.
Place whole spices in an electric spice/coffee grinder and grind to a fine powder.
Add the powdered spices to the grinder and pulse for a few seconds to mix well.
Store in airtight container away from direct sunlight.