My understanding is that a binary file is the hex-codes of the instructions of the processor (can be loaded into memory & start executing from entry point) and a ELF file is the same with NO-Fixed memory addresses assigned for data etc...

Now, how can I convert ELF to binary?

How the conversion works? I mean how the memory addresses are assigned?