Despite remarkable improvement in the human immunodeficiency virus (HIV) and hepatitis C virus (HCV) care continuum, the rate of late diagnosis of HIV and HCV in high-income countries remains unacceptably high. Testing relies mainly on primary care physicians' identification of risk factors. We aimed to adapt an analogic to an online questionnaire to help HIV and HCV screening and perform a pilot study to assess its accuracy and acceptability. We used the Delphi method to adapt a previously validated analogical questionnaire to a user-friendly online tool. It aimed to identify participants who should be screened for HIV or HCV and those who should be referred for pre-exposure prophylaxis (PrEP). We then designed a proof-of-concept pilot study from July to October 2022 to test its feasibility and suitability for use on a larger scale and to assess its accuracy in identifying patients at risk for HIV or HCV or with indication for PrEP. The final questionnaire consisted of 37 questions. A total of 142 participants provided informed consent, and 102 completed the questionnaire: 41 random patients recruited at the primary care level, 10 participants recently diagnosed with HIV, 20 participants with HIV on follow-up, 21 participants from the PrEP program, and 10 patients diagnosed with HCV. The tool adequately indicated the need for testing in more than 98% of participants with confirmed HIV/HCV infections or in the PrEP program. Furthermore, it adequately assessed PrEP referral in 94% of participants already on PrEP or with known HIV infection. Participants were highly satisfied with the tool, and 98% of them recommended its use. A self-administered web-based tool to identify patients who should be tested for HIV or HCV or referred to PrEP could simplify patient selection and help reduce late diagnosis.