Annual report [Section 13 and 15(d), not S-K Item 405]

Cover

v3.25.1
Cover - USD ($)
12 Months Ended
Dec. 31, 2024
Apr. 18, 2025
Jun. 28, 2024
Cover [Abstract]      
Document Type 10-K/A    
Amendment Flag true    
Amendment Description to include items 10-14 of Part III    
Document Annual Report true    
Document Transition Report false    
Document Period End Date Dec. 31, 2024    
Document Fiscal Period Focus FY    
Document Fiscal Year Focus 2024    
Current Fiscal Year End Date --12-31    
Entity File Number 001-37937    
Entity Registrant Name XENETIC BIOSCIENCES, INC.    
Entity Central Index Key 0001534525    
Entity Tax Identification Number 45-2952962    
Entity Incorporation, State or Country Code NV    
Entity Address, Address Line One 945 Concord Street    
Entity Address, City or Town Framingham    
Entity Address, State or Province MA    
Entity Address, Postal Zip Code 01701    
City Area Code 781    
Local Phone Number 778-7720    
Title of 12(b) Security Common Stock, $0.001 par value per share    
Trading Symbol XBIO    
Security Exchange Name NASDAQ    
Entity Well-known Seasoned Issuer No    
Entity Voluntary Filers No    
Entity Current Reporting Status Yes    
Entity Interactive Data Current Yes    
Entity Filer Category Non-accelerated Filer    
Entity Small Business true    
Entity Emerging Growth Company false    
Entity Shell Company false    
Entity Public Float     $ 5,301,818
Entity Common Stock, Shares Outstanding   1,542,139  
Document Financial Statement Error Correction [Flag] false