Bonds are rated by credit rating agencies (such as Moody’s, S&P, and Fitch) based on the issuer’s creditworthiness. Ratings range from AAA (high credit quality) to D (in default).