Laboratory tests can diagnose chlamydia.

Your health care provider may ask you to provide a urine sample or may use (or ask you to use) a cotton swab to get a sample from your vagina to test for chlamydia.

These days PCR test are available which can detect with accuracy.