There are programs for it, but they can cause problems if you don't know what you're doing.
Try clearing out iMovie files, all those copied video parts can use up a lot of memory. Other than that, just uninstall apps you don't use, delete films and TV shows you don't watch, delete music you don't listen to, etc.