PurposeThe purpose of this study was to explore the essential digital competencies for developing and managing digital libraries. The study identified useful training programs for university librarians to acquire digital competencies. It examined their digital competencies for developing and managing digital libraries in universities of Pakistan. This study also evaluates their digital knowledge in applying security measures to protect digital contents.Design/methodology/approachThe quantitative research method was used to conduct this study. Research questions and hypothesis were developed to achieve the objectives. In-depth review of related literature was conducted to draft a list of essential digital competencies for developing and managing digital libraries. It was circulated among the panel of experts to get their valuable feedback to make a final list of digital competencies for developing and managing digital libraries. A questionnaire was developed to measure the status of digital competencies of university librarians in Pakistan. It was pre-tested on 20 respondents before applying to the whole population. SPSS software was used to analyze data. Descriptive and inferential statistics were applied to achieve results.FindingsThe findings of the study showed that digital competencies for developing and managing digital libraries fall into three main categories: digital competencies for developing digital libraries; digital competencies for managing digital libraries; and digital competencies to protect digital contents. The results revealed that training programs offered by Higher Education Commission (HEC), library associations, library schools, in-house trainings, use of online tutorials and trainings offered by skilled professionals are highly important and useful for university librarians to acquire digital competencies. The study concluded that the university librarians working in HEC recognized universities in Punjab province possess basic level of digital competencies for developing and managing digital libraries. Their digital competencies vary on the basis of their university type, i.e. public and private sector.Research limitations/implicationsThis study measures digital competencies of university librarians in Pakistan. The study has practical implications for librarians, library schools, library associations, university libraries and HEC.Practical implicationsThis study has practical implications for librarians, information professionals, libraries and library schools. The results are useful for librarians to get knowledge of digital competencies which are essential for developing and managing digital libraries and protecting digital contents. They can develop their digital competencies in identified areas. This study has identified useful training programs for university librarians for acquiring digital competencies. The university librarians should use these programs to gain needed digital skills.Social implicationsLibrarians can get knowledge of digital competencies for developing and managing digital libraries to face the challenges of digital age.Originality/valueIn contrast to previous research work on investigating computer skills, information and communication technology skills, technological skills and general digital skills, this study particularly identifies the essential digital competencies for developing and managing digital libraries. It helps library and information science schools, library associations, training groups and university libraries to offer adequate training opportunities in identified areas to meet the challenges of the digital age.