How can I compress a tar file into a tar.xz file on Windows?

I converted my folder into a tar file as follows:

1. Selected the file
2. Right-clicked one of the highlighted items
3. Clicked add to archive
4. Choose tar from the archive format drop-down menu