Study and Productivity

How to Read and Draw a Phylogenetic Tree From a Newick File

Open Newick or Nexus trees, root them on an outgroup, colour clades, ladderise and export publication-ready SVG or PNG figures in your browser.

Saizul Amin
Saizul Amin2 Nov 2026 · 3 min read
How to Read and Draw a Phylogenetic Tree From a Newick File

Phylogenetic programs such as RAxML, IQ-TREE, MrBayes and BEAST write their trees as Newick or Nexus text: nested parentheses, names and numbers. To understand a tree, or to put it in a paper, you need to draw it, root it and tidy it. The free Phylogenetic Tree Viewer does this in your browser. This guide explains the format and how to make a clear figure.

Understanding Newick

In Newick, a pair of parentheses groups taxa that share an ancestor, commas separate the branches, numbers after a colon are branch lengths and labels after a closing parenthesis are usually support values. For example, ((Human,Chimp),Gorilla) says that humans and chimpanzees are each other's closest relatives, with gorillas as the next branch. The file ends with a semicolon. Nexus files wrap Newick trees in a TREES block and often replace names with numbers through a TRANSLATE table.

Step 1: open the tree

Paste the Newick text or open the file. Multi-tree Nexus files, such as a set of bootstrap or posterior trees, list each tree so you can pick one. TRANSLATE tables are applied automatically so tips show their real names.

Step 2: choose a layout

A rectangular phylogram, with branch lengths drawn to scale and a scale bar, is the standard for publications. A cladogram shows only the branching order, which helps when some branches are so long that others are squashed. Circular layouts fit many tips into a compact figure for posters.

Step 3: root the tree

Most tree-building methods produce unrooted trees, so the root shown is arbitrary until you choose one. Select the outgroup, a taxon known to lie outside the group of interest, and press Reroot here. The branch above it is split in half and the tree is redrawn with the root there.

Practical example

The sample primate tree has seven tips. Selecting Marmoset, a New World monkey, and rerooting places the root on its branch: the 0.0565 branch is split into two branches of 0.02825, and the exported Newick begins (Marmoset:0.02825, with the Old World monkeys and apes forming the other side.

Step 4: tidy and colour

Ladderise sorts branches so that larger clades come first, giving the familiar staircase shape. Rotate swaps the children of a node without changing the tree's meaning. Select a node and pick a colour to colour the whole clade, for example to show the groups you discuss in the text. Use the highlight box to find particular taxa in large trees.

Step 5: show support

Support values, such as bootstrap percentages or posterior probabilities, appear on internal nodes. State in the legend which they are. Branch lengths can also be printed, though for large trees they clutter the figure.

Step 6: export

Download SVG for journals and vector editors, a high-resolution PNG for slides, and the rerooted tree as Newick for other programs.

Reading a tree correctly

Read relationships from shared ancestors, not from the order of tips down the page: rotating a node changes the order but not the tree. Branch lengths in a phylogram usually represent substitutions per site, not time, unless the tree was dated.

Making a publication figure

Keep tip labels readable at the final printed size, which often means a font of at least 8 points. Colour only the clades you discuss, and explain the colours in the legend. State the method, the substitution model and what the support values mean, and add the scale bar units, usually substitutions per site.

Privacy

Trees are drawn in your browser and are not uploaded.

Summary

Open the file, choose a layout, root on an outgroup, tidy and colour, and export. The tree viewer turns Newick text into a figure you can publish.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages