It can reconstitute its entire cellular structure to change into what it sees, but it returns to normal when it relaxes.
While it can transform into anything, each Ditto apparently has its own strengths and weaknesses when it comes to transformations.