v3.20.4

Balance Sheet Components - Schedule of Deferred Revenue (Details) - USD ($) $ in Thousands | Dec. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2018
--- | --- | --- | ---
Deferred Revenue Arrangement [Line Items] |  |  |
Total deferred revenue, current | $ 55,465 | $ 39,861 | $ 45,442
Total deferred revenue, non-current | 21,283 | 15,370 | 19,594
Total deferred revenue | 76,748 | 55,231 | $ 65,036
Platform |  |  |
Deferred Revenue Arrangement [Line Items] |  |  |
Total deferred revenue, current | 27,587 | 18,234 |
Total deferred revenue, non-current | 9,909 | 6,135 |
Player |  |  |
Deferred Revenue Arrangement [Line Items] |  |  |
Total deferred revenue, current | 27,878 | 21,627 |
Total deferred revenue, non-current | $ 11,374 | $ 9,235 |

X
- Definition Amount of deferred income and obligation to transfer product and service to customer for which consideration has been received or is receivable. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(5)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_DeferredRevenue
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. + References No definition available. + Details
Name: | us-gaap_DeferredRevenueArrangementLineItems
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of deferred income and obligation to transfer product and service to customer for which consideration has been received or is receivable, classified as current. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(5)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_DeferredRevenueCurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Definition Amount of deferred income and obligation to transfer product and service to customer for which consideration has been received or is receivable, classified as noncurrent. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 210 -SubTopic 10 -Section S99 -Paragraph 1 -Subparagraph (SX 210.5-02(5)) -URI http://asc.fasb.org/extlink&oid=120391452&loc=d3e13212-122682 + Details
Name: | us-gaap_DeferredRevenueNoncurrent
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=roku_PlatformSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | us-gaap_StatementBusinessSegmentsAxis=roku_PlayerSegmentMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |