Retirement tax questions

I have contributed $6k to the traditional IRA and plan on doing the $12k conversion to Roth IRA. Is this a conversion (the Backdoor Roth) of all $12k and its earnings, everything in the traditional IRA account? Do you know? Thanks in advance!