v3.25.2
Document And Entity Information - shares
6 Months Ended
Jun. 30, 2025
Jul. 31, 2025
Cover [Abstract]    
Entity Registrant Name QNB Corp.  
Trading Symbol QNBC  
Title of 12(g) Security Common Stock  
Security Exchange Name NONE  
Document Type 10-Q  
Current Fiscal Year End Date --12-31  
Entity Common Stock, Shares Outstanding   3,721,138
Amendment Flag false  
Entity Central Index Key 0000750558  
Entity Filer Category Non-accelerated Filer  
Document Period End Date Jun. 30, 2025  
Document Fiscal Year Focus 2025  
Document Fiscal Period Focus Q2  
Entity Small Business true  
Entity Emerging Growth Company false  
Entity Shell Company false  
Document Quarterly Report true  
Document Transition Report false  
Entity Current Reporting Status Yes  
Entity Interactive Data Current Yes  
Entity File Number 0-17706  
Entity Incorporation, State or Country Code PA  
Entity Tax Identification Number 23-2318082  
Entity Address, Address Line One 15 North Third Street  
Entity Address, Address Line Two P.O. Box 9005  
Entity Address, City or Town Quakertown  
Entity Address, State or Province PA  
Entity Address, Postal Zip Code 18951-9005  
City Area Code 215  
Local Phone Number 538-5600