Great answer by Assumi Sir.
The procedures for divorce and legal separation are essentially the same. The actions are filed in the same way and proceed the same way through the court's calendar. And, the end result for both will be a final judgment which divides assets and debts, determines financial obligations between the spouses, and establishes placement and custody rights to the children.
However, a legal separation is different from a divorce. If you are legally separated, you cannot marry anyone else until the legal separation is converted to a divorce, and then you must wait six months after this is done. Also, if you are legally separated and you reconcile with your spouse, you can dismiss the legal separation and thus restore the marriage. In contrast, if you divorce, you will have to remarry your spouse. Also, in some circumstances, one spouse may be eligible for continuing health coverage from the other spouse's employer, even after a legal separation is granted. The same is not true with a divorce.