Longitudinal studies on the variations of phenotypic and genotypic characteristics of K. pneumoniae across two decades are rare. We aimed to determine the antimicrobial susceptibility and virulence factors for K. pneumoniae isolated from patients with bacteraemia or urinary tract infection (UTI) from 1999 to 2022. A total of 699 and 1,267 K. pneumoniae isolates were isolated from bacteraemia and UTI patients, respectively, and their susceptibility to twenty antibiotics was determined; PCR was used to identify capsular serotypes and virulence-associated genes. K64 and K1 serotypes were most frequently observed in UTI and bacteraemia, respectively, with an increasing frequency of K20, K47, and K64 observed in recent years. entB and wabG predominated across all isolates and serotypes; the least frequent virulence gene was htrA. Most isolates were susceptible to carbapenems, amikacin, tigecycline, and colistin, with the exception of K20, K47, and K64 where resistance was widespread. The highest average number of virulence genes was observed in K1, followed by K2, K20, and K5 isolates, which suggest their contribution to the high virulence of K1. In conclusion, we found that the distribution of antimicrobial susceptibility, virulence gene profiles, and capsular types of K. pneumoniae over two decades were associated with their clinical source.