What is the difference between copywriting and UX writing?

Copywriting is the process of writing text for the purpose of advertising or other forms of marketing. The goal of copywriting is to persuade a person or group to take a particular action, such as purchasing a product or service. UX writing, on the other hand, is the process of writing text for user interfaces, such as websites and mobile apps. The goal of UX writing is to make the user's experience with the interface as clear and seamless as possible. While both copywriting and UX writing involve writing, the primary goal and audience are different. Copywriting is focused on persuasion and sales, while UX writing is focused on usability and user experience.