v3.19.3.a.u2

Leases - Additional Information (Details) - USD ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2019 | Dec. 31, 2018 | Dec. 31, 2017
Leases [Line Items] |  |  |
Lessee, operating lease, existence of option to extend | true |  |
Lessee, operating lease, existence of option to terminate | true |  |
Sub lease expiration year | 2020 |  |
Additional leases, primarily for corporate offices, that have not yet commenced | $ 6.6 |  |
Rent expense |  | $ 9.7 | $ 6.9
Minimum |  |  |
Leases [Line Items] |  |  |
Remaining lease term, operating lease | 1 year |  |
Additional operating leases that have not yet commenced, lease terms | 5 years |  |
Maximum |  |  |
Leases [Line Items] |  |  |
Remaining lease term, operating lease | 11 years |  |
Additional operating leases that have not yet commenced, lease terms | 11 years |  |

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

X
- Definition Remaining lease term operating lease. + References No definition available. + Details
Name: | roku_RemainingLeaseTermOperatingLease
Namespace Prefix: | roku_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Definition Sub lease expiration year. + References No definition available. + Details
Name: | roku_SubLeaseExpirationYear
Namespace Prefix: | roku_
Data Type: | xbrli:gYearItemType
Balance Type: | na
Period Type: | duration

X
- Definition Amount of rent expense incurred for leased assets, including but not limited to, furniture and equipment, that is not directly or indirectly associated with the manufacture, sale or creation of a product or product line. + References No definition available. + Details
Name: | us-gaap_LeaseAndRentalExpense
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | duration

X
- Definition Indicates (true false) whether lessee has option to extend operating lease. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph (a)(3) -URI http://asc.fasb.org/extlink&oid=77888426&loc=SL77918673-209980 + Details
Name: | us-gaap_LesseeOperatingLeaseExistenceOfOptionToExtend
Namespace Prefix: | us-gaap_
Data Type: | xbrli:booleanItemType
Balance Type: | na
Period Type: | duration

X
- Definition Indicates (true false) whether lessee has option to terminate operating lease. + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph (a)(3) -URI http://asc.fasb.org/extlink&oid=77888426&loc=SL77918673-209980 + Details
Name: | us-gaap_LesseeOperatingLeaseExistenceOfOptionToTerminate
Namespace Prefix: | us-gaap_
Data Type: | xbrli:booleanItemType
Balance Type: | na
Period Type: | duration

X
- Definition Term of lessee's operating lease not yet commenced, in 'PnYnMnDTnHnMnS' format, for example, 'P1Y5M13D' represents reported fact of one year, five months, and thirteen days. + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Publisher FASB -Name Accounting Standards Codification -Topic 842 -SubTopic 20 -Section 50 -Paragraph 3 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=77888426&loc=SL77918673-209980 + Details
Name: | us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedTermOfContract1
Namespace Prefix: | us-gaap_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | instant

X
- Definition Amount of the unrecorded obligation to transfer funds in the future for fixed or minimum amounts or quantities of goods or services at fixed or minimum prices (for example, as in take-or-pay contracts or throughput contracts). + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 440 -SubTopic 10 -Section 50 -Paragraph 4 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=77896938&loc=d3e25336-109308 + Details
Name: | us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount
Namespace Prefix: | us-gaap_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | srt_RangeAxis=srt_MinimumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | srt_RangeAxis=srt_MaximumMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |