Viral encephalitis is a rare, yet severe neurological disorder. It poses a significant public health threat due to its high morbidity and mortality. Despite the disproportionate burden of the disease in impoverished African countries, the true extent of the problem remains elusive due to the scarcity of accurate diagnostic methods. The absence of timely and effective diagnostic tools, particularly Real-time Polymerase Chain Reaction, has led to misguided treatment, and an underestimation of the disease burden in Ghana. We conducted a prospective cross-sectional study to determine the viral aetiologies of encephalitis among patients presenting to a major referral hospital in Ghana from May 2019 and August 2022. The study aimed at providing a comprehensive information on the clinical epidemiology, and outcomes of viral encephalitis in Ghana. Clinical samples were collected from patients presenting with signs and symptoms of encephalitis and tested for viral agents using real-time polymerase chain reaction. We assessed the clinical epidemiology, risk factors and outcome of individuals using descriptive and logistic regression analysis. Seventy-seven (77) patients were enrolled unto the study. The participants frequently presented with fever (85.7%), seizures (80.5%), lethargy (64.9%) and headache (50.6%). Viruses were detected in 40.3% of the study participants in either cerebrospinal fluid, rectal or oral swab samples. The most frequently detected viruses were cytomegalovirus (48.4%), enteroviruses (38.7%) and HSV (29.0%). Twenty-one (27.3%) of the patients died while on hospital admission. Gender (OR = 5.70 (1.536–1.172), p = 0.01), and negative polymerase chain reaction test results were identified as significant factors associated with death. Antiviral treatment increased the chance of survival of viral encephalitis patients by 21.8%. Our results validate the crucial role of molecular tools as essential for the rapid diagnosis of viral encephalitis, enabling effective treatment and improved patient outcomes. This study contributes valuable epidemiological and clinical insight into viral encephalitis in Ghana.