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

    <documentType>4</documentType><periodOfReport>2003-05-13</periodOfReport>
    <issuer>
        <issuerCik>0001027443</issuerCik>
        <issuerName>MACROVISION CORP</issuerName>
        <issuerTradingSymbol>MVSN</issuerTradingSymbol></issuer><reportingOwner><reportingOwnerId>
            <rptOwnerCik>0001079808</rptOwnerCik>
            <rptOwnerName>RYAN JOHN O</rptOwnerName>
        </reportingOwnerId>
        <reportingOwnerAddress>
            <rptOwnerStreet1>  </rptOwnerStreet1>
            <rptOwnerStreet2>  </rptOwnerStreet2>
            <rptOwnerCity>  </rptOwnerCity>
            <rptOwnerState>  </rptOwnerState>
            <rptOwnerZipCode>  </rptOwnerZipCode>
        </reportingOwnerAddress>
            <reportingOwnerRelationship>
<isDirector>1</isDirector><isOfficer>1</isOfficer><isTenPercentOwner>0</isTenPercentOwner><isOther>0</isOther><officerTitle>Chairman of the Board and Exec</officerTitle></reportingOwnerRelationship></reportingOwner><nonDerivativeSecurity><securityTitle><value>Common Stock</value></securityTitle><transactionDate><value>2003-05-13</value></transactionDate><transactionCoding><transactionFormType>5</transactionFormType><transactionCode>G</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>500</value></transactionShares><transactionValue><value>0</value></transactionValue><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1130848</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>Ryan Family Trust</value><footnoteId id="F1"/></natureOfOwnership></ownershipNature></nonDerivativeSecurity><nonDerivativeSecurity><securityTitle><value>Common Stock</value></securityTitle><transactionDate><value>2003-05-13</value></transactionDate><transactionCoding><transactionFormType>5</transactionFormType><transactionCode>G</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>500</value></transactionShares><transactionValue><value>0</value></transactionValue><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1130348</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>Ryan Family Trust</value><footnoteId id="F1"/></natureOfOwnership></ownershipNature></nonDerivativeSecurity><nonDerivativeSecurity><securityTitle><value>Common Stock</value></securityTitle><transactionDate><value>2003-05-13</value></transactionDate><transactionCoding><transactionFormType>5</transactionFormType><transactionCode>G</transactionCode><equitySwapInvolved>0</equitySwapInvolved></transactionCoding><transactionAmounts><transactionShares><value>500</value></transactionShares><transactionValue><value>0</value></transactionValue><transactionAcquiredDisposedCode><value>D</value></transactionAcquiredDisposedCode></transactionAmounts><postTransactionAmounts><sharesOwnedFollowingTransaction><value>1129848</value></sharesOwnedFollowingTransaction></postTransactionAmounts><ownershipNature><directOrIndirectOwnership><value>I</value></directOrIndirectOwnership><natureOfOwnership><value>Ryan Family Trust</value><footnoteId id="F1"/></natureOfOwnership></ownershipNature></nonDerivativeSecurity><footnotes><footnote id="F1">These shares are held directly by the John O. Ryan and Pauline E. Ryan Trust U/T/A 1/22/92 (&amp;quot;Family Trust&amp;quot;) and indirectly by John Ryan and Pauline Ryan as trustees of the Trust.

</footnote><footnote id="F2"></footnote><footnote id="F3"></footnote></footnotes><ownerSignature><signatureName>Jack Isaacs                                                                                                                                                                                                          Power of Attorney for John Ryan</signatureName><signatureDate>2003-05-20</signatureDate></ownerSignature></ownershipDocument>

