The radiative decays of heavy mesons and heavy baryons are studied in a formalism which incorporates both heavy-quark symmetry and chiral symmetry. The chiral Lagrangians for the electromagnetic interactions of heavy hadrons consist of two pieces: one from gauging electromagnetically the strong-interaction chiral Lagrangian, and the other from the anomalous magnetic moment interactions of the heavy baryons and mesons. Because of the heavy-quark spin symmetry, the latter contains only one independent coupling constant in the meson sector and two in the baryon sector. These coupling constants only depend on the light quarks and can be calculated in the nonrelativistic quark model. However, the charmed quark is not heavy enough and the contribution from its magnetic moment must be included. Applications to the radiative decays D*→Dγ, B*→Bγ, Ξc′→Ξcγ, c→Λcγ, and c→Λcπγ are given. Together with our previous results on the strong decay rates of D*→Dπ and c→Λcπ, predictions are obtained for the total widths and branching ratios of D* and c. The decays c+→Λc+π0γ and c0→Λc+π- γ are discussed to illustrate the important roles played by both heavy-quark symmetry and chiral symmetry.