phpSyntaxTree - drawing syntax trees made easy

Phrase (labelled bracket notation):

Open brackets: Closed brackets:


phpSyntaxTree allows you to generate graphical syntax trees from labelled bracket notation phrases. You can then include the graphics into your homework or assignments.

Please send your comments and suggestions to


Enter a phrase above using labelled bracket notation. Click "Draw" to create a syntax tree graph for the entered phrase. You can right-click on the generated tree image to copy-and-paste it into your documents, or left-click the tree image to download it.

To create a node with subscript parts, separate the subscript part using the _ character. For example "NP_1" will show in the graph as NP1. Optionally, select Auto subscript, to automatically number all equally named nodes (NP1, NP2 etc.).

Disable color and/or smooth lines to create a more black & white printer friendly image.

Using phpSyntaxTree on

     phpSyntaxTree allows us to include syntactic trees in our posts on the forum! First, of course, we would like to thank the authors (see credits below) for creating such a powerful and useful tool.

     On the forum you can use [TREE]...[/TREE] tags to include a syntactic tree in any post. And you can use this page to test out your trees. It might be a little hard to learn at first, but just practice a bit and you'll catch on quickly.

     Example tree: [S [NP phpSyntaxTree][VP [V creates][NP nice syntax trees]]]

     If you want to include a tree you create here, just cut and paste the results into [TREE]...[/TREE] tags for the forum! You can also type directly on the forum if you don't need a preview or bracket counting.

Return to Linguist Forum

phpSyntaxTree home page