General ledger codes are numbers assigned to general ledger accounts and used to categorize transactions. For example, all electrical utility bills might be assigned the same GL code. GL codes make it easier to classify and analyze revenue and spending.