For unlables rooted trees, there are also the matula numbers which naturally map between these trees and the natural numbers.
Also, if you want binary trees, another way to do that could be to take any bijection between positive natural numbers and pairs of natural numbers (including 0), and,
well, it is fairly straightforward.
Let 0 correspond to the tree of one vertex (no children), and then for any binary tree, associate it with the natural number corresponding to the pair of natural numbers which are associated with the two child subtrees.
The specific bijection used to pair them is up to you. This page seems to describe one example of this.
Also, if you want binary trees, another way to do that could be to take any bijection between positive natural numbers and pairs of natural numbers (including 0), and, well, it is fairly straightforward.
Let 0 correspond to the tree of one vertex (no children), and then for any binary tree, associate it with the natural number corresponding to the pair of natural numbers which are associated with the two child subtrees.
The specific bijection used to pair them is up to you. This page seems to describe one example of this.