You can know if you have an STD by recognizing the symptoms. Signs and symptoms that might indicate that you have an STD are:
Painful or burning urination
Unusual vaginal bleeding
Sores or bumps in the oral or rectal area
Painful sex
Fever
Penis discharge
Rash
Lower abdominal pain
Unusual or foul-smelling vaginal discharge