I haven't tried this, but a quick Google threw up this option:
https://apps.apple.com/us/app/duplic...84929789?mt=12
You could also have a look at this list, but it includes some non-free options as well:
https://www.bestmaccleaner.com/dupli...inder-for-mac/