Format badges.