Context. Stellar bars play an essential role in the secular evolution of disk galaxies because they are responsible for the redistribution of matter and angular momentum. Dynamical models predict that bars become stronger and longer in time, while their rotation speed slows down. Aims. We use the Spitzer Survey of Stellar Structure in Galaxies (S 4 G) 3.6 µm imaging to study the properties (length and strength) and fraction of bars at z = 0 over a wide range of galaxy masses (M * ≈ 10 8 −10 11 M ) and Hubble types (−3 ≤ T ≤ 10). Methods. We calculated gravitational forces from the 3.6 µm images for galaxies with a disk inclination lower than 65• . We used the maximum of the tangential-to-radial force ratio in the bar region (Q b ) as a measure of the bar-induced perturbation strength for a sample of ∼600 barred galaxies. We also used the maximum of the normalized m = 2 Fourier density amplitude (A max 2 ) and the bar isophotal ellipticity (ε) to characterize the bar. Bar sizes were estimated i) visually; ii) from ellipse fitting; iii) from the radii of the strongest torque; and iv) from the radii of the largest m = 2 Fourier amplitude in the bar region. By combining our force calculations with the H kinematics from the literature, we estimated the ratio of the halo-to-stellar mass (M h /M * ) within the optical disk and by further using the universal rotation curve models, we obtained a first-order model of the rotation curve decomposition of 1128 disk galaxies. Results. We probe possible sources of uncertainty in our Q b measurements: the assumed scale height and its radial variation, the influence of the spiral arms torques, the effect of non-stellar emission in the bar region, and the dilution of the bar forces by the dark matter halo (our models imply that only ∼10% of the disks in our sample are maximal). We find that for early-and intermediate-type disks (−3 ≤ T < 5), the relatively modest influence of the dark matter halo leads to a systematic reduction of the mean Q b by about 10−15%, which is of the same order as the uncertainty associated with estimating the vertical scale height. The halo correction on Q b becomes important for later types, implying a reduction of ∼20−25% for T = 7−10. Whether the halo correction is included or not, the mean Q b shows an increasing trend with T . However, the mean A max 2 decreases for lower mass late-type systems. These opposing trends are most likely related to the reduced force dilution by bulges when moving towards later type galaxies. Nevertheless, when treated separately, both the early-and late-type disk galaxies show a strong positive correlation between Q b and A max 2 . For spirals the mean ε ≈ 0.5 is nearly independent of T , but it drops among S0s (≈0.2). The Q b and ε show a relatively tight dependence, with only a slight difference between early and late disks. For spirals, all our bar strength indicators correlate with the bar length (scaled to isophotal size). Late-type bars are longer than previously found in the literature. The bar fraction...