A direct, reagent-free, ultraviolet spectroscopic method for the simultaneous determination of nitrate (NO3−), nitrite (NO2−), and salinity in seawater is presented. The method is based on measuring the absorption spectra of the raw seawater range of 200–300 nm, combined with partial least squares (PLS) regression for resolving the spectral overlapping of NO3−, NO2−, and sea salt (or salinity). The interference from chromophoric dissolved organic matter (CDOM) UV absorbance was reduced according to its exponential relationship between 275 and 295 nm. The results of the cross-validation of calibration and the prediction sets were used to select the number of factors (4 for NO3−, NO2−, and salinity) and to optimize the wavelength range (215–240 nm) with a 1 nm wavelength interval. The linear relationship between the predicted and the actual values of NO3−, NO2−, salinity, and the recovery of spiked water samples suggest that the proposed PLS model can be a valuable alternative method to the wet chemical methods. Due to its simplicity and fast response, the proposed PLS model can be used as an algorithm for building nitrate and nitrite sensors. The comparison study of PLS and a classic least squares (CLS) model shows both PLS and CLS can give satisfactory results for predicting NO3− and salinity. However, for NO2− in some samples, PLS is superior to CLS, which may be due to the interference from unknown substances not included in the CLS algorithm. The proposed method was applied to the analysis of NO3−, NO2−, and salinity in the Changjiang (Yangtze River) estuary water samples and the results are comparable with that determined by the colorimetric Griess assay.