A CSV table formatted like this
should work. This looks like your 2nd version. Note the there can be any number of columns, and ra + dec need not be named "ra", "dec" (the web crossmatch will ask you which columns are in fact RA and Dec), and the order of columns is also not important).
What is the problem you are encountering? It won't let you upload the file? Crossmatch fails?