Onion (2n = 2x = 16) has been a nutritional, medicinal and economically valuable vegetable crop all over the world since ancient times. To accelerate the molecular breeding in onion, genetic linkage maps are prerequisite. However, construction of genetic linkage maps of onion remains relatively rudimentary due to a large genome (about 16.3 Gbp) as well as biennial life cycle, cross-pollinated nature, and high inbreeding depression. In this study, we constructed single nucleotide polymorphism (SNP)-based genetic linkage map of onion in an F2 segregating population derived from a cross between the doubled haploid line ‘16P118′ and inbred line ‘Sweet Green’ through genotyping by sequencing (GBS). A total of 207.3 Gbp of raw sequences were generated using an Illumina HiSeq X system, and 24,341 SNPs were identified with the criteria based on three minimum depths, lower than 30% missing rate, and more than 5% minor allele frequency. As a result, an onion genetic linkage map consisting of 216 GBS-based SNPs were constructed comprising eight linkage groups spanning a genetic length of 827.0 cM. Furthermore, we identified the quantitative trait loci (QTLs) for the sucrose, glucose, fructose, and total sugar content across the onion genome. We identified a total of four QTLs associated with sucrose (qSC4.1), glucose (qGC5.1), fructose (qFC5.1), and total sugar content (qTSC5.1) explaining the phenotypic variation (R2%) ranging from 6.07–11.47%. This map and QTL information will contribute to develop the molecular markers to breed the cultivars with high sugar content in onion.