Free · runs in your browser

samtools

Flagstat, stats, sort, view, depth and duplicate marking for SAM and BAM files.

  • Free with a free account
  • Nothing to install
  • Your files stay on your device

Version: 1.21 · Licence: MIT · Authors' project: htslib.org

What you need

  • An alignment file in BAM or SAM format. It does not need to be sorted; the page sorts it where a step needs that.

Sign in with a free account, press Load example, then Run, to see a full result in seconds.

Checking your sign-in…

Learn samtools and the full workflow around it in NGS Data Analysis: WGS & WES, a Vedicgen course with a certificate · from ₹6,999 + GSTView course

Reading the result

  • Flagstat counts reads by category. Check the mapped and properly paired percentages.
  • Stats lists summary numbers such as error rate, average quality and insert size.
  • Depth gives the read depth at every position; the mosdepth page turns this into a coverage summary.
  • Mark duplicates flags PCR and optical duplicates. A duplicate rate above 20 to 30% for DNA libraries often means low library complexity.

Next step

Download your result, then open it on one of these pages:

Limits

SAM or BAM up to 200 MB; CRAM is not supported because it needs a reference.

For larger files or whole genomes, plan the run in Solagene AI: it can run the same tool on your own computer through the free Bridge, or on Solagene cloud with Pro.

Cite

Danecek P, et al. (2021). Twelve years of SAMtools and BCFtools. GigaScience 10:giab008. doi:10.1093/gigascience/giab008

Cite, link or share this tool

Cite this tool

Solagene. samtools on Solagene [online tool]. Nayancode, Solagene; 2026. Available at: https://solagene.com/run/samtools/ (accessed 2026-11-23).

Add it to your lab or course page

<a href="https://solagene.com/run/samtools/" title="Free samtools on Solagene by Solagene">samtools on Solagene</a> (free, runs in your browser) by <a href="https://solagene.com/">Solagene</a>

FAQ

Frequently asked questions

Not answered here? Send us your question and we will reply by e-mail.

Open this page, sign in with a free Solagene account, choose your files and press Run. samtools runs inside your browser tab, so there is nothing to install. Sign in with a free Solagene account, then press Load example to try it with a small dataset first.

An alignment file in BAM or SAM format. It does not need to be sorted; the page sorts it where a step needs that.

Flagstat counts reads by category. Check the mapped and properly paired percentages. Stats lists summary numbers such as error rate, average quality and insert size. Depth gives the read depth at every position; the mosdepth page turns this into a coverage summary. Mark duplicates flags PCR and optical duplicates. A duplicate rate above 20 to 30% for DNA libraries often means low library complexity.

Yes. samtools runs in your browser on your own computer, so there is no cost. You sign in with a free Solagene account to use it.

No. Files are read by your browser and processed on your device. Nothing is sent to Solagene.

Yes. This page runs the original samtools 1.21, compiled to WebAssembly by the biowasm project.

SAM or BAM up to 200 MB; CRAM is not supported because it needs a reference. For larger jobs, Solagene AI can plan the same run on your own computer or on Solagene cloud.

Common next steps are mosdepth, Picard, bcftools. Each one also runs free in your browser on Solagene.