It will convert any format of E-Book to a compatible format for the Kindle (usually MOBI) and allows you to upload it directly. I use it often and it's an amazing piece of software!
Edit: Oh no, Amazon removed KindleGen! When did that happen? I still have x86 copies for Linux and windows if anyone wants it. Supposedly "Kindle Previewer" can do the same thing, but a cursory glance looks like it no longer supports Linux...
[0] https://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000765...
We know where this is going, don't we? Offering interoperability in the beginning and then gradually taking it away - the old bait and switch trick. We consumers fall for it again and again.
I doubt I have a copy of it somewhere. Does anyone have / know of a copy of kindlegen for Linux anywhere?
Edit: Wayback machine has it, thank god. Had a very real sense of loss there. Unsure why it's a project I've hardly touched for years. https://github.com/wjdp/gotdict for the interested.
Highly recommend.
Edit: I know I could convert between formats, but that process is not always perfect and can lose important formatting.