Syntax Tree Generator

Draw a syntax tree from labeled brackets or parentheses. Edit your phrase structure, preview the constituency tree, and download it as a scalable SVG.

Syntax tree

Syntax treeSNPVPDetNVThecatslept

Draw a syntax tree from labeled brackets

Start each group with its label, then add the words or smaller groups it contains. Try [S [NP [Det The] [N cat]] [VP [V slept]]]. Here S is the sentence, NP is the noun phrase, and VP is the verb phrase. The diagram updates as you edit the bracket notation. You can also paste labeled trees written with parentheses, such as (NP (Det the) (N cat)).

Show phrases and terminal nodes

A group can contain several smaller groups, so a phrase can branch into two or more parts. Use a multiword terminal such as [N ice cream] when you want the entire expression on one line in the tree. If the preview points to a bracket error, use its line and column to find where a group lacks a label or needs a matching closing bracket.

Export a constituency tree for a worksheet or assignment

Choose Download SVG to save the diagram as a vector image. You can resize the SVG in a document, slide, or vector editor while keeping its text and lines sharp. Copy the bracket notation separately if you want to store the editable source alongside the image.