if you don't know what edition you have, it's probably bedrock edition. java edition says "java edition" right on the title screen (and also requires you to go through the launcher, where it also says "java edition" multiple times). this is good news though, because the current switch release is also bedrock edition! though, i would highly advise against trying to transfer your worlds to switch due to some pretty egregious performance issues. also, bedrock edition is multiplatform, so there's not really a reason to transfer to switch unless you really like holding the console or something.
if you do still want to transfer your worlds for some reason, the easiest way to do that is unfortunately via realms. they give out free realms trials every once in a long while, but otherwise you either have to pay (a two-player realm is about the same price as a month of nso) or learn how to sideload it, which is kind of an ordeal, not something i could personally help you with, and could easily attract mario's ire.