Phylogenetic tree viewer: open Newick or NEXUS trees, reroot, colour and download as SVG, in your browser

Open a Newick or NEXUS tree file and draw it as a rectangular or circular tree, with branch lengths and support values. Reroot it at the midpoint or on any branch, ladderize, swap branches and colour groups. Download SVG, Newick, tip distances (CSV) or a report. Nothing is uploaded.

Keep it one tap away for everyday use.

Bookmark Phylogenetic tree viewer?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Open tree
  2. Style
  3. Reroot
  4. SVG
Nothing is uploadedWorks offline once open

Tree

Newick (.nwk, .tre, .tree) or NEXUS (.nex) with a TREES block and TRANSLATE table, up to 50 MB. Branch lengths, support values, quoted names and [comments] are read. The file stays on your device.

What it does

A phylogenetic tree shows how sequences, genes or species are related. Programs such as tree-building software save trees as Newick text, like ((A:0.1,B:0.2)95:0.05,C:0.3);, or inside a NEXUS file. This tool reads that text and draws the tree, so you can look at it, tidy it up for a figure and save it, without installing anything. The file never leaves your device.

How to use it

  1. Open a tree file, paste the Newick text, or press Use the example. If the file holds several trees (for example bootstrap trees, or several trees in a NEXUS TREES block), pick one from the list.
  2. Choose Rectangular or Circular, and the options:
    • Use branch lengths: draw branches to scale. Turn it off to draw a cladogram, where only the branching order counts.
    • Line up tip names: put every name at the right edge, joined to its tip with a dotted line.
    • Show support values: the numbers on branch points, such as bootstrap percentages or posterior probabilities.
    • Show branch lengths: write each branch’s length under it.
    • Italic names: for species names.
    • Text size and Line width set the look of the drawing and the downloads.
  3. Tap a tip or a branch point on the tree (or choose a tip from the list) to pick it. Then you can:
    • Root here: put the root on the branch above it, half-way along the branch.
    • Swap its branches: flip the order of its branches. The tree means the same thing; only the drawing changes.
    • Colour this group: draw it and everything below it in the colour you choose.
  4. Root at the midpoint puts the root half-way along the longest path between two tips. This is a common choice when there is no outgroup. Ladderize sorts the branches so smaller groups come first, which makes big trees easier to read. Undo all changes brings back the tree as it was opened.
  5. Download the drawing as SVG (sharp at any size, editable in Inkscape or Illustrator), the changed tree as Newick, the distances between tips as a CSV table (up to 1,000 tips), or a report as an image, PDF or Word file.

Worked example

Press Use the example. It is a made-up tree of 14 taxa (Taxon A to Taxon N) with branch lengths and support values. It has 13 branch points, every one splitting in two, and a total branch length of 2.35.

Press Root at the midpoint. The longest path between two tips runs from Taxon N to Taxon C (0.30 + 0.07 + 0.10 + 0.12 + 0.04 + 0.17 = 0.80), so the root moves to 0.40 from each end, on the branch between the old root and the group of Taxon I to N, 0.07 from the old root. Taxon N and Taxon C are then both 0.40 from the root. The distance between any two tips stays the same; only the place of the root changes. Then pick Taxon N and press Root here to see the tree rooted on Taxon N’s branch instead.

Support values when rerooting

A number on a branch point usually describes the branch above it, such as “95 % of bootstrap trees have this group”. When you reroot, some branches turn round, so the tool moves each number with its branch instead of leaving it on the node. Names on branch points that are not numbers stay where they are.

FAQ

Which files can it open? Newick files (.nwk, .newick, .tre, .tree, .ph) and NEXUS files with a TREES block, including a TRANSLATE table that swaps numbers for full names. Up to 50 MB.

Why are underscores shown as spaces? In Newick, an underscore in an unquoted name stands for a space. Names in ‘single quotes’ are kept exactly.

Is there a limit on tree size? Trees with up to 5,000 tips are drawn. Bigger trees still get their counts and downloads.

Is my tree uploaded? No. Everything runs in your browser and works offline once the page has loaded.

Where the numbers come from

  • Newick and NEXUS reading, rerooting, midpoint rooting, ladderizing and drawing written by fibub. Tip-to-tip distances, total branch length and the root-to-tip distances after midpoint rooting were checked against Biopython's Bio.Phylo on the example and six random trees.
  • The example tree is made up: 14 invented taxa with invented branch lengths and support values. It is not a published tree.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-09.

Change log for Phylogenetic tree viewer

  1. Add #177 phylogenetic tree viewer (Newick and NEXUS) Details on GitHub

Every change to fibub

Related tools

Pairwise sequence alignment #172 Align two DNA or protein sequences end to end (global), with free end gaps (semi-global) or by their best-matching stretch (local), with affine gap scores you can set. See the score, identity, similarity and gaps, the alignment in blocks, and a dot plot. Runs in your browser. Linkage map calculator #204 Convert recombination frequencies to map distances with the Haldane and Kosambi mapping functions (and back), order loci and draw a linkage map from a table of pairwise recombination frequencies, and solve a three-point testcross: gene order, recombination frequencies, coefficient of coincidence and interference. Runs in your browser. Pedigree drawing tool #205 Type or paste a family table, or add relatives with buttons, and get a pedigree drawn with the standard NSGC symbols: affected, carrier, deceased, proband, twins, adoption and consanguinity, with generation numbers. Checks for loops, missing parents and sex conflicts. Download SVG or PNG. Nothing leaves your device. k-mer counter and spectrum #176 Count every k-letter word in FASTA or FASTQ files (gzip too, any size), with reverse complements together. See the k-mer spectrum, the most common k-mers, a look-up box and a rough genome size from the spectrum's peak. Download the spectrum as CSV. Nothing is uploaded. Biodiversity indices #39 Paste species counts for one or more sites and get Shannon, Simpson, evenness, Chao1 richness, rarefaction curves and Bray-Curtis similarity in one table. Runs in your browser. DNA sequence tools #163 Paste a DNA or RNA sequence or open a FASTA file. Get the length and GC content, the reverse complement, the protein in any of the six reading frames, every open reading frame above a length you choose drawn on a map, and a codon usage table. Runs in your browser; your sequence never leaves the device. Community ordination #306 Paste a species-by-site table and get a PCA (with the Hellinger transform), an NMDS on Bray-Curtis with its stress and Shepard plot, and a cluster dendrogram (UPGMA, Ward, single or complete linkage). Download the scores, the dissimilarities and the tree. Runs in your browser. Tree builder #308 Paste aligned DNA sequences (FASTA) and build a tree by neighbour joining or UPGMA on p, Jukes-Cantor or Kimura 2-parameter distances, or by maximum parsimony with an exact branch and bound search. See the distances, root the tree and download it as Newick. Runs in your browser. Molecular clock calculator #309 Estimate when two species or genes split from their genetic distance and a substitution rate (T = d / 2r), or work out the rate from a known split. Distances from two aligned sequences or site counts with Jukes-Cantor or Kimura 2-parameter correction, error ranges, and Tajima's relative rate test with an outgroup. Runs in your browser. Wright-Fisher simulator #310 Simulate genetic drift and selection at one gene in a population of N individuals, in up to 10,000 replicate lines at once. Set the selection coefficient s and dominance h, watch the allele frequency wander, and compare the share of lines where the allele fixed with Kimura's fixation probability. Seeded random numbers, so every run can be repeated. dN/dS calculator #311 Paste two aligned protein-coding DNA sequences and get dN, dS and dN/dS (Ka/Ks) by the Nei-Gojobori method with the Jukes-Cantor correction: synonymous and nonsynonymous sites and differences, standard errors, a Z test for selection and a codon-by-codon table. Runs in your browser. Coalescent simulator #314 Simulate the family tree of a sample of gene copies back to their most recent common ancestor under the Kingman coalescent. See the tree with its mutations, then compare thousands of genealogies with the expected time to the common ancestor, total branch length, number of segregating sites and Watterson's estimate of θ. Seeded random numbers, so every tree can be repeated. Dichotomous key builder #321 Write an identification key as couplets for any group of organisms, check it for loops, dead ends and unreached couplets or taxa, try it step by step, and save it as JSON or printable text. Runs in your browser. Crossing plan and pedigree tracker #388 Enter plants and their parents, and planned crosses. The tool checks the pedigree for loops and mistakes, works out every plant's inbreeding coefficient and the coancestry of any two plants (the inbreeding their offspring would have), draws the pedigree, and saves a crossing plan as CSV. Nothing is uploaded. Harris matrix builder #403 Type or open your context relations (above, below, cuts, same as, contemporary with), find impossible loops and contradictions, drop redundant relations, and get a layered Harris matrix as SVG, PNG, PDF or CSV. Nothing is uploaded.