You prepare an ISO file and format it into a bootable USB drive.
Reference the Windows 8.1 manual for detailed instructions.