A transporter is a device which takes matter, shifts it into subspace, and can do some manipulation of that matter in the process, but can't reconstruct it arbitrary. Once the transported object has been rematerialized, all the transporter has left is a record of what that matter was at a far lesser precision than what would be needed to replicate it.
A replicator is a transporter designed to shift inert matter into subspace and modify it extensively from that state. A typical replicator is less precise than a transporter and is simultaneously limited by the complexity of its recipes. It cannot produce functional living things, for example.
Transporters and replicators are frequently referred to as matter-energy conversion devices. This is technically true but somewhat deceptive. It's also a common misconception that a transporter is an advanced replicator, instead of the other way round, but we know this isn't true: a safe-for-humans Transporter was invented and used in the 22nd century, while the contemporary replicator equivalents were primitive protein resequencers.