The present invention provides a process for the preparation of amorphous Sofosbuvir. The process comprises a) treating sofosbuvir with a solvent or mixture of solvents, b) optionally, heating the mixture of step a and c) isolating amorphous Sofosbuvir.