How to reset mac computer without password

How do I reset my Mac to factory settings without a password?

If you want to factory reset your Mac without passwords, you need to enter the Recovery Mode first and then use the Disk Utility or Reinstall macOS option to erase data on your Mac.

How do I restore my Mac computer to factory settings?

From the Apple menu  in the corner of your screen, choose System Settings. Click General in the sidebar. Click Transfer or Reset on the right. Click Erase All Content and Settings.