Tungsten (W) concentrations in fluids in equilibrium with crystalline tungsten oxide are used to determine thermodynamic parameters for W solubility and W species in hydrothermal fluids. The solubility data were measured in situ at high pressures and temperatures using X-ray absorption. X-ray spectroscopic data measured in situ - with X-ray absorption near-edge structure (XANES) and extended X-ray absorption fine structure (EXAFS) - were applied to characterize the symmetry and the type of atoms of the first coordination shell of W aqueous complexes present in the fluid at given temperatures and pressures. Experiments were performed at up to 400 degrees C and at pressures of 40, 50 and 60 MPa. With this dataset, we were able to improve constraints for the already-suggested fluid species WO42-, HWO4-, H2WO40, NaWO4- and NaHWO40. Further, we were able to introduce the H3WO4+ species that is found to be dominant in acidic fluids. No evidence was found for W species involving Cl- as a ligand. The ionic W species found in the fluid are characterized by a tetrahedral complex at alkaline conditions. In neutral to acidic conditions, W complexes with distorted octahedral symmetry are formed. These complexes may be polymerized at temperatures <= 200 degrees C and W concentrations >10-3 mol kg-1 H2O. X-ray spectroscopy as well as thermodynamic modeling suggests that polytungstate species are not relevant at equilibrium concentrations found in the solubility experiments of this study (<= 10-3 mol W kg-1 H2O in equilibrium with tungsten oxide) or at concentrations reported for natural systems. Using the thermodynamic properties of the species mentioned above, in situ data on the solubility of scheelite can be successfully described. Thermodynamic modeling shows that scheelite solubility and wolframite solubility strongly increase with increasing salinity, especially up to 1 m NaCl (m denotes molality), and vary with pH, which is consistent with earlier reports. Overall, this study provides improved thermodynamic properties for a set of W fluid species that cover a wide range of fluid compositions, which is necessary for understanding the complex processes of W enrichment and mineralization in hydrothermal systems.