Diameter is a critical parameter for determining the physical properties of a submicrometer optical fiber and requires an accurate measurement. In this study, we proposed, to our knowledge, a novel diameter measurement technique derived from the waveguide theory, utilizing the pitch of a standing-wave near-field light generated by two counter-propagating lights within the submicrometer optical fiber. In a submicrometer optical fiber, the propagating light extends into the surrounding air as near-field light, existing within a range approximately equivalent to one wavelength from the surface of the fiber. By generating the standing-wave near-field light with the incident lights from both ends of the fiber, the pitch of the standing-wave near-field light can be measured by scanning along the fiber's central axis with a scanning near-field optical microscopy probe. The fiber diameter is subsequently acquired by solving the optical fiber eigenvalue equation. Based on the feasibility verification experiment, a high-precision measurement of approximately 0.50 µm was realized for the diameter of the optical fiber.