v3.20.4

Licensed Content Assets - Additional Information (Details) - USD ($) | 12 Months Ended
--- | ---
Dec. 31, 2020 | Dec. 31, 2019
Licensed Content Assets [Line Items] |  |
Change in accounting principle, accounting standards update, adopted [true false] | true |
Change in accounting principle, accounting standards update, adoption date | Jan. 01, 2020 |
Change in accounting principle, accounting standards update, immaterial effect [true false] | true |
Accounting Standards Update Extensible List | us-gaap:AccountingStandardsUpdate201902Member |
Licensed content expenses | $ 7,900,000 | $ 1,700,000
Amortization of content assets | 22,392,000 | 2,914,000
Impairment of capitalized licensed content assets | 0 | $ 0
Licensed Content Assets |  |
Licensed Content Assets [Line Items] |  |
Impairment of capitalized licensed content assets | $ 0 |

X
- Definition Amortization expense of licensed content assets. + References No definition available. + Details
Name: | roku_AmortizationExpenseOfLicensedContentAssets
Namespace Prefix: | roku_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Content licensing expense. + References No definition available. + Details
Name: | roku_ContentLicensingExpense
Namespace Prefix: | roku_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Impairment of licensed content assets. + References No definition available. + Details
Name: | roku_ImpairmentOfLicensedContentAssets
Namespace Prefix: | roku_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Licensed content assets. + References No definition available. + Details
Name: | roku_LicensedContentAssetsLineItems
Namespace Prefix: | roku_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Indicates amendment to accounting standards. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (f)(2) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (g)(1) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (f)(2) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (f)(1) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (g)(2)(i) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (e) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (d) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (h)(2) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (e)(3) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (b)(2) -URI http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794 Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (e) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (b)(4) -URI http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794 Reference 18: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (b)(3) -URI http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794 Reference 19: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (g)(2)(iv) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 20: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (g)(2)(iii) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 21: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (h)(1) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 22: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 23: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 24: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (c)(2) -URI http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794 Reference 25: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (e)(4) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 Reference 26: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 Reference 27: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (g)(2) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 28: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (f)(1) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 29: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 Reference 30: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (g)(2)(ii) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 31: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 65 -Paragraph 8 -Subparagraph (d)(2) Reference 32: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 65 -Paragraph 8 -Subparagraph (d)(3) + Details
Name: | us-gaap_AccountingStandardsUpdateExtensibleList
Namespace Prefix: | us-gaap_
Data Type: | srt-types:extensibleListItemType
Balance Type: | na
Period Type: | duration

X
- Definition Indicates (true false) whether accounting standards update was adopted. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121329987&loc=SL120154346-209984 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 20 -Section 65 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=121483254&loc=SL120254523-199619 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 926 -SubTopic 20 -Section 65 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 926 -SubTopic 20 -Section 65 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079 Reference 10: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 3 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL120320025-210437 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 3 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL120320025-210437 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 65 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=120240428&loc=SL120254526-165497 Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL120254519-210437 Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 65 -Paragraph 8 -Subparagraph (a) + Details
Name: | us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateAdopted
Namespace Prefix: | us-gaap_
Data Type: | xbrli:booleanItemType
Balance Type: | na
Period Type: | instant

X
- Definition Date accounting standards update was adopted, in CCYY-MM-DD format. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121329987&loc=SL120154346-209984 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 815 -SubTopic 20 -Section 65 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=121483254&loc=SL120254523-199619 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 Reference 6: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 926 -SubTopic 20 -Section 65 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079 Reference 7: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 3 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL120320025-210437 Reference 8: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 3 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL120320025-210437 Reference 9: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 926 -SubTopic 20 -Section 65 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=120154821&loc=SL120154904-197079 Reference 10: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=109234566&loc=d3e22583-107794 Reference 11: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (c) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 12: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 13: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 14: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 944 -SubTopic 40 -Section 65 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=121370832&loc=SL117420844-207641 Reference 15: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 2 -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL120254519-210437 Reference 16: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 825 -SubTopic 10 -Section 65 -Paragraph 5 -URI http://asc.fasb.org/extlink&oid=120240428&loc=SL120254526-165497 Reference 17: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 65 -Paragraph 8 -Subparagraph (a) + Details
Name: | us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateAdoptionDate
Namespace Prefix: | us-gaap_
Data Type: | xbrli:dateItemType
Balance Type: | na
Period Type: | instant

X
- Definition Indicates (true false) whether effect from applying amendment to accounting standards is immaterial. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section S99 -Paragraph 3 -URI http://asc.fasb.org/extlink&oid=112272810&loc=d3e31010-122693 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 718 -SubTopic 10 -Section 65 -Paragraph 15 -Subparagraph (g)(2) -URI http://asc.fasb.org/extlink&oid=121322162&loc=SL121327923-165333 Reference 3: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 326 -SubTopic 10 -Section 65 -Paragraph 4 -Subparagraph (e)(1) -URI http://asc.fasb.org/extlink&oid=121646688&loc=SL121648383-210437 Reference 4: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 250 -SubTopic 10 -Section 50 -Paragraph 1 -Subparagraph (b)(2) -URI http://asc.fasb.org/extlink&oid=109234566&loc=d3e22499-107794 Reference 5: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 740 -SubTopic 10 -Section 65 -Paragraph 8 -Subparagraph (e)(3) + Details
Name: | us-gaap_ChangeInAccountingPrincipleAccountingStandardsUpdateImmaterialEffect
Namespace Prefix: | us-gaap_
Data Type: | xbrli:booleanItemType
Balance Type: | na
Period Type: | instant

X
- Details
Name: | srt_ProductOrServiceAxis=roku_LicensedContentAssetsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |