If it's all downloadable/copy-paste, just use any GUID generator.
If you're relying on people to type it in, I'd go with alpha-numeric, cleaning up ambiguous characters (Such as 1/l/I) and keeping the length moderately short, no more than 6-8 characters split up into two sections with a space in between.
It's better to limit tries than make a crazy long key that no one can type.
That's based on you asking how to "make" license keys.
If you're also asking for help how to verify them offline for example, it's a different story.
If the client will be online you can just do an API call and check on start, if there's no key show a splash screen with the option of entering a key.
If there IS a key, send it (securely) to the API and do something depending on the result.
Here's a good article for how you could do it for offline keys: https://www.brandonstaggs.com/2007/07/26/implementing-a-part...
It's written for Delphi/Object Pascal but the principles can be implemented in any language.