<?xml version="1.0" encoding="UTF-8"?><edgarSubmission xmlns="http://www.sec.gov/edgar/ownership" xmlns:ns2="http://www.sec.gov/edgar/common">
    <headerData>
        <submissionType>144</submissionType>
        <filerInfo>
            <filer>
                <filerCredentials>
                    <cik>0001722513</cik>
                    <ccc>XXXXXXXX</ccc>
                </filerCredentials>
            </filer>
            <liveTestFlag>LIVE</liveTestFlag>



        </filerInfo>
    </headerData>
    <formData>
        <issuerInfo>
            <issuerCik>0000277948</issuerCik>
            <issuerName>CSX CORPORATION</issuerName>
            <secFileNumber>001-08022</secFileNumber>
            <issuerAddress>
                <ns2:street1>500 Water Street</ns2:street1>
                <ns2:street2>15th Floor</ns2:street2>
                <ns2:city>Jacksonville</ns2:city>
                <ns2:stateOrCountry>FL</ns2:stateOrCountry>
                <ns2:zipCode>32202</ns2:zipCode>
            </issuerAddress>
            <issuerContactPhone>904-359-3200</issuerContactPhone>
            <nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>NATHAN D GOLDMAN</nameOfPersonForWhoseAccountTheSecuritiesAreToBeSold>
            <relationshipsToIssuer>
                <relationshipToIssuer>Officer</relationshipToIssuer>
            </relationshipsToIssuer>
        </issuerInfo>
        <securitiesInformation>
            <securitiesClassTitle>Common</securitiesClassTitle>
            <brokerOrMarketmakerDetails>
                <name>Morgan Stanley Smith Barney LLC Executive Financial Services</name>
                <address>
                    <ns2:street1>1 New York Plaza</ns2:street1>
                    <ns2:street2>38th Floor</ns2:street2>
                    <ns2:city>New York</ns2:city>
                    <ns2:stateOrCountry>NY</ns2:stateOrCountry>
                    <ns2:zipCode>10004</ns2:zipCode>
                </address>
            </brokerOrMarketmakerDetails>
            <noOfUnitsSold>244487</noOfUnitsSold>
            <aggregateMarketValue>8953093.74</aggregateMarketValue>
            <noOfUnitsOutstanding>1959134342</noOfUnitsOutstanding>
            <approxSaleDate>02/20/2024</approxSaleDate>
            <securitiesExchangeName>NASDAQ</securitiesExchangeName>
        </securitiesInformation>
        <securitiesToBeSold>
            <securitiesClassTitle>COMMON</securitiesClassTitle>
            <acquiredDate>02/20/2024</acquiredDate>
            <natureOfAcquisitionTransaction>Stock Option Exercise</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>ISSUER</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>161487</amountOfSecuritiesAcquired>
            <paymentDate>02/20/2024</paymentDate>
            <natureOfPayment>Cash</natureOfPayment>
        </securitiesToBeSold>
        <securitiesToBeSold>
            <securitiesClassTitle>COMMON</securitiesClassTitle>
            <acquiredDate>01/21/2022</acquiredDate>
            <natureOfAcquisitionTransaction>Performance Shares</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>ISSUER</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>23000</amountOfSecuritiesAcquired>
            <paymentDate>01/21/2022</paymentDate>
            <natureOfPayment>Not Applicable</natureOfPayment>
        </securitiesToBeSold>
        <securitiesToBeSold>
            <securitiesClassTitle>COMMON</securitiesClassTitle>
            <acquiredDate>01/26/2023</acquiredDate>
            <natureOfAcquisitionTransaction>Performance Shares</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>ISSUER</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>21000</amountOfSecuritiesAcquired>
            <paymentDate>01/26/2023</paymentDate>
            <natureOfPayment>Not Applicable</natureOfPayment>
        </securitiesToBeSold>
        <securitiesToBeSold>
            <securitiesClassTitle>COMMON</securitiesClassTitle>
            <acquiredDate>01/22/2021</acquiredDate>
            <natureOfAcquisitionTransaction>Performance Shares</natureOfAcquisitionTransaction>
            <nameOfPersonfromWhomAcquired>ISSUER</nameOfPersonfromWhomAcquired>
            <isGiftTransaction>N</isGiftTransaction>
            <amountOfSecuritiesAcquired>39000</amountOfSecuritiesAcquired>
            <paymentDate>01/22/2021</paymentDate>
            <natureOfPayment>Not Applicable</natureOfPayment>
        </securitiesToBeSold>
        <nothingToReportFlagOnSecuritiesSoldInPast3Months>Y</nothingToReportFlagOnSecuritiesSoldInPast3Months>
        <noticeSignature>
            <noticeDate>02/20/2024</noticeDate>
            <planAdoptionDates>
                <planAdoptionDate>11/10/2023</planAdoptionDate>
            </planAdoptionDates>
            <signature>/s/ Nathan D. Goldman</signature>
        </noticeSignature>
    </formData>
</edgarSubmission>
[{"type": "144", "sequence": "1", "filename": "primary_doc.xml", "secsgml_size_bytes": 5135}]
144
0001722513
XXXXXXXX
LIVE
0000277948
CSX CORPORATION
001-08022
500 Water Street
15th Floor
Jacksonville
FL
32202
904-359-3200
NATHAN D GOLDMAN
Officer
Common
Morgan Stanley Smith Barney LLC Executive Financial Services
1 New York Plaza
38th Floor
New York
NY
10004
244487
8953093.74
1959134342
02/20/2024
NASDAQ
COMMON
02/20/2024
Stock Option Exercise
ISSUER
N
161487
02/20/2024
Cash
COMMON
01/21/2022
Performance Shares
ISSUER
N
23000
01/21/2022
Not Applicable
COMMON
01/26/2023
Performance Shares
ISSUER
N
21000
01/26/2023
Not Applicable
COMMON
01/22/2021
Performance Shares
ISSUER
N
39000
01/22/2021
Not Applicable
Y
02/20/2024
11/10/2023
/s/ Nathan D. Goldman