Where to Find the Codes for Lego Hero Factory

The codes for the Lego Hero Factory game come printed on the packaging itself.

Look inside the canister and under the lids of the boxes. That is where the sets hide them, which is why buying a used set secondhand often leaves you without a code, since the previous owner has already used it.

If you are after a specific list of codes rather than the packaging, there are separate answers that collect those.