<?xml version="1.0"?>
<ownershipDocument>
    <schemaVersion>X0101</schemaVersion>

    <documentType>4/A</documentType><periodOfReport>2003-07-01</periodOfReport><dateOfOriginalSubmission>2003-07-03</dateOfOriginalSubmission>
    <issuer>
        <issuerCik>0001058289</issuerCik>
        <issuerName>LEXAR MEDIA INC</issuerName>
        <issuerTradingSymbol>LEXR</issuerTradingSymbol></issuer><reportingOwner><reportingOwnerId>
            <rptOwnerCik>0001234046</rptOwnerCik>
            <rptOwnerName>WHITAKER ERIC S</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>  </rptOwnerStreet1>
            <rptOwnerStreet2>  </rptOwnerStreet2>
            <rptOwnerCity>  </rptOwnerCity>
            <rptOwnerState>  </rptOwnerState>
            <rptOwnerZipCode>  </rptOwnerZipCode>
        </reportingOwnerAddress>
            <reportingOwnerRelationship>
<isDirector>0</isDirector><isOfficer>1</isOfficer><isTenPercentOwner>0</isTenPercentOwner><isOther>0</isOther><officerTitle>VP, General Counsel &amp;Secretary</officerTitle></reportingOwnerRelationship></reportingOwner><nonDerivativeSecurity><securityTitle><value>Common Stock</value></securityTitle><transactionDate><value>2003-07-01</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>M</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>9000</value></transactionShares><transactionValue><value>.92</value></transactionValue><transactionAcquiredDisposedCode><value>A</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>113038</value><footnoteId id="F1"/></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></nonDerivativeSecurity><derivativeSecurity><securityTitle><value>Employee Stock Option (Right to Purchase)</value></securityTitle><conversionOrExercisePrice><value>.92</value></conversionOrExercisePrice><transactionDate><value>2003-07-01</value></transactionDate><transactionCoding><transactionFormType>4</transactionFormType><transactionCode>M</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>9000</value></transactionShares><transactionValue><value>.92</value></transactionValue><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><exerciseDate><value>2002-02-28</value><footnoteId id="F2"/></exerciseDate><expirationDate><value>2011-08-29</value></expirationDate><underlyingSecurity><underlyingSecurityTitle><value>Common Stock</value></underlyingSecurityTitle><underlyingSecurityShares><value>9000</value></underlyingSecurityShares></underlyingSecurity><postTransactionAmounts><sharesOwnedFollowingTransaction><value>216667</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>D</value></directOrIndirectOwnership><natureOfOwnership><value/></natureOfOwnership></ownershipNature></derivativeSecurity><footnotes><footnote id="F1">As of July 1, 2003, 10,625 shares were subject to the Issuer's right to repurchase such shares at the original price paid by Mr. Whitaker in the event Mr. Whitaker's relationship with the Issuer is terminated.  The Issuer's repurchase right lapsed as to twenty-five percent (25%) of the shares on December 21, 2000 and lapses with respect to an additional 1/48th of the total number of shares on each succeeding month thereafter until fully vested.</footnote><footnote id="F2">As of July 1, 2003, no further shares are vested or exercisable.  Twelve and one-half percent (12.5%) of the shares subject to the grant vested and became exercisable on February 28, 2002, and an additional 1/48th of the total number of shares vest and become exercisable on the 28th day of each succeeding month thereafter until fully vested.</footnote></footnotes><ownerSignature><signatureName>Eric S. Whitaker</signatureName><signatureDate>2003-07-07</signatureDate></ownerSignature></ownershipDocument>

