A fully open source software program for automated two-dimensional and one-dimensional data reduction and preliminary analysis of isotropic small-angle X-ray scattering (SAXS) data is presented. The program is freely distributed, following the open-source philosophy, and does not rely on any commercial software packages. BioXTAS RAW is a fully automated program that, via an online feature, reads raw two-dimensional SAXS detector output files and processes and plots data as the data files are created during measurement sessions. The software handles all steps in the data reduction. This includes mask creation, radial averaging, error bar calculation, artifact removal, normalization and q calibration. Further data reduction such as background subtraction and absolute intensity scaling is fast and easy via the graphical user interface. BioXTAS RAW also provides preliminary analysis of one-dimensional data in terms of the indirect Fourier transform using the objective Bayesian approach to obtain the pair-distance distribution function, PDDF, and is thereby a free and open-source alternative to existing PDDF estimation software. Apart from the TIFF input format, the program also accepts ASCII-format input files and is currently compatible with one-dimensional data files from SAXS beamlines at a number of synchrotron facilities. BioXTAS RAW is written in Python with C++ extensions.