The Shannon information entropy for scandium fluoride (ScF) and hydrogen ( H 2 ) molecules in the presence of magnetic and Aharanov–Bohm (AB) fields with modified Kratzer plus screened Coulomb potential in the position and momentum coordinate is investigated. The wavefunction and probability density are obtained by solving the two-dimensional (2D) Schrödinger wave equation using the Nikiforov–Uvarov functional analysis method and then applied to calculate the Shannon entropy. The graphical behaviour of the 2D wavefunction and probability density is showcased. Our results depict the effects of the external fields on Shannon entropy for ScF and ( H 2 ) , the negative values of the position Shannon entropies obtained imply higher localisation of the particles and molecules indicating more stability of the system. Another interesting part of this work is that Bialynicki–Birula–Mycielski inequality is tested and proven bounded for both diatomic molecules. A few to mention, this research will enhance the apprehension of the dynamics of quantum molecules and systems subjected to external fields, quantum information signal processing and communication.