A breakthrough has been achieved in solving the Einstein field equations for a specific class of charged compact objects existing in higher dimensions with inhomogeneous matter distribution. The geometry of space-time is believed to be spheroid, encapsulated in (n+2) dimensions of Euclidean space where n=D−2, D be the space-time dimension. The internal physical (n+1) space is elucidated by the Vaidya–Tikekar metric ansatz, which is defined by spheroidal and curvature parameters. The form of the equation of state in MIT bag model, p=13(ρ−4B), where the constant B is termed as bag constant, is implemented to investigate the relevant physical features of anisotropic strange quark stars containing a net amount of charge. The inclusion of higher dimensions effectively decreases the mass retained within a given radius of a compact object but increases its compactness. For a particular dimension, if one increases the value of B, the mass increases for a given value of radius. Determination of maximum radius and consequently, maximum mass have been obtained by equating the value of radial sound velocity as the extreme limit of causality (=1) at the center of the star. Both the maximum mass and radius of a given compact object are found to increase when both charge and pressure anisotropy increase and decrease for an increment of surface density or bag constant B. The maximum mass attained in the model is 3.498M⊙. Prediction of the radius of some recently observed compact objects has also been done for different D, B, charge and pressure anisotropy parameters. Different energy conditions and stability criteria stand up throughout the compact object containing anisotropy in pressure and net charge. The tidal deformability of some compact objects has also been investigated using the present model.