One of the most difficult and under-examined issues in the ethics research of developing countries is whether the establishment of codes of ethics in public service organizations leads to employees’ organizational commitment. This study investigates the link between codes of ethics and organizational commitment, as well as its three dimensions of affective, normative and continuance commitment, in Ghanaian public service organizations. Correlational, regression and descriptive statistics were used to study 228 participants conveniently sampled from selected public service organizations within the Greater Accra Region of Ghana. Empirical evidence showed that codes of ethics significantly and positively predicted employees’ organizational commitment, as well as the three dimensions of the affective, normative and continuance commitment of employees. Points for practitioners: Codes are intended to educate the general public, and employees in particular, about the mission of an organization, to foster a good ethical climate, and to provide guidance for resolving ethical problems in an organization. To ensure employee commitment to the organization, the codes should be effectively implemented, well communicated and strictly enforced with impartiality; otherwise, the codes will appear merely as ‘cosmetic dressing’ to the organization.