Trimming is aesthetically shaping a tree or removing overgrowth. Pruning can involve that and more, from getting rid of potentially-hazardous branches to improving the overall health of the tree. Both terms are often used interchangeably.