Multiple sequence alignment conversion

How to convert a FASTA-formatted multiple sequence alignment file into a PHYLIP sequential one?

How to convert a FASTA-formatted multiple sequence alignment file into a NEXUS one?

Several programs allows a FASTA-formatted multiple sequence alignment file $infile to be converted into NEXUS-formatted one $outfile. Below are some examples.

Clustalw

The program Clustalw allows converting FASTA-formatted files into NEXUS ones with the following command line:

[170222ac]

goalign

The program goalign allows converting FASTA-formatted files into NEXUS ones with the following command line:

[1702312fl]

How to convert a relaxed PHYLIP-formatted multiple sequence alignment file into a FASTA one?

How to convert a PHYLIP-formatted multiple sequence alignment into a NEXUS one?