Ready-to-use, ground spices have their place and work quite well in most cases, but if you would just try grinding them from whole seeds to taste the difference, it may be hard to go back.
Using the same technique as you would to toast nuts over the stove top, toast your whole spices first. This will bring out the aromatic and flavorful oils, allowing them to have a stronger and fuller taste. Just keep a very close eye on them, as they tend to toast very quickly; about 5–8 minutes should do it. They may not appear any different in color, but don’t worry, you will definitely smell the difference. Let the spices cool completely before grinding down to a fine powder in a spice or coffee grinder. To achieve the finest consistency, you may want to first try freezing the spices. Measure out for your recipes only after completely ground, as whole spices would measure out to very different amounts, compared to powdered.