In this paper, we give an explicit description of the moduli space of line bundles on hyperelliptic curves, including singular curves. We study the universal Jacobian method=retrieve&_eid=1-s2.0-S0021869316302964&_mathId=si2.gif&_user=111111111&_pii=S0021869316302964&_rdoc=1&_issn=00218693&md5=ce544af01164a3c9fa81aacbd826df5e" title="Click to view the MathML source">J2,g,n of degree n line bundles over the Hurwitz stack of double covers of method=retrieve&_eid=1-s2.0-S0021869316302964&_mathId=si1.gif&_user=111111111&_pii=S0021869316302964&_rdoc=1&_issn=00218693&md5=3cf9872936d1459940a525c885862c4b" title="Click to view the MathML source">P1 by a curve of genus g . Our main results are: the construction of a smooth, irreducible, universally closed (but not separated) moduli compactification method=retrieve&_eid=1-s2.0-S0021869316302964&_mathId=si3.gif&_user=111111111&_pii=S0021869316302964&_rdoc=1&_issn=00218693&md5=021444a43d98fc52a9676fa17163c77e"> of method=retrieve&_eid=1-s2.0-S0021869316302964&_mathId=si2.gif&_user=111111111&_pii=S0021869316302964&_rdoc=1&_issn=00218693&md5=ce544af01164a3c9fa81aacbd826df5e" title="Click to view the MathML source">J2,g,n whose points we describe simply and explicitly as sections of certain vector bundles on method=retrieve&_eid=1-s2.0-S0021869316302964&_mathId=si1.gif&_user=111111111&_pii=S0021869316302964&_rdoc=1&_issn=00218693&md5=3cf9872936d1459940a525c885862c4b" title="Click to view the MathML source">P1; a description of the global geometry and moduli properties of these stacks; and a computation of the Picard groups of method=retrieve&_eid=1-s2.0-S0021869316302964&_mathId=si3.gif&_user=111111111&_pii=S0021869316302964&_rdoc=1&_issn=00218693&md5=021444a43d98fc52a9676fa17163c77e"> and method=retrieve&_eid=1-s2.0-S0021869316302964&_mathId=si2.gif&_user=111111111&_pii=S0021869316302964&_rdoc=1&_issn=00218693&md5=ce544af01164a3c9fa81aacbd826df5e" title="Click to view the MathML source">J2,g,n in the cases when method=retrieve&_eid=1-s2.0-S0021869316302964&_mathId=si4.gif&_user=111111111&_pii=S0021869316302964&_rdoc=1&_issn=00218693&md5=9d2a5832e5a3cae8dd02b9ff78062957" title="Click to view the MathML source">n−g is even. An important ingredient of our work is the parametrization of line bundles on double covers by binary quadratic forms. This parametrization generalizes the classical number theoretic correspondence between ideal classes of quadratic rings and integral binary quadratic forms, which in particular gives the group law on integral binary quadratic forms first discovered by Gauss.