Differentiation between septic and aseptic loosening of joint replacements is essential for successful revision surgery, but reliable markers for the diagnosis of low-grade infection are lacking. The present study was performed to assess intra-articular and systemic levels of antimicrobial peptides and proinflammatory cytokines as diagnostic markers for periprosthetic joint infection. Fifteen consecutive patients with staphylococcal periprosthetic joint infections and twenty control patients with aseptic loosening of total hip and knee replacements were included in this prospective, single-center, controlled clinical trial. Expression of the antimicrobial peptides human β-defensin-2 (HBD-2), human β-defensin-3 (HBD-3), and cathelicidin LL-37 (LL-37) was determined by ELISA (enzyme-linked immunosorbent assay) in serum and joint aspirates. Proinflammatory cytokines were assessed in serum and joint aspirates with use of cytometric bead arrays. C-reactive protein in serum, microbiology, and histopathology of periprosthetic tissue served as the "gold standard" for the diagnosis of infection. The antimicrobial peptides HBD-3 and LL-37 were significantly elevated in joint aspirates from patients with periprosthetic joint infection compared with patients with aseptic loosening, and the area under the curve (AUC) in a receiver operating characteristic curve analysis was equal to 0.745 and 0.875, respectively. Additionally, significant local increases in the proinflammatory cytokines interleukin (IL)-1β, IL-4, IL-6, IL-17A, interferon (IFN)-γ, and tumor necrosis factor (TNF)-α were observed to be associated with infection. Logistic regression analysis indicated that the combination of an antimicrobial peptide with another synovial fluid biomarker improved diagnostic accuracy; the AUC value was 0.916 for LL-37 and IL-4, 0.895 for LL-37 and IL-6, 0.972 for HBD-3 and IL-4, and 0.849 for HBD-3 and IL-6. In contrast, the only antimicrobial peptides and cytokines in serum that showed a significant systemic increase in association with infection were HBD-2, IL-4, and IL-6 (all of which had an AUC value of <0.75). The present study showed promising results for the use of antimicrobial peptides and other biomarkers in synovial fluid for the diagnosis of periprosthetic joint infection, and analysis of the levels in synovial fluid was more accurate than analysis of serum.