v3.19.3.a.u2

Fair Value Disclosure (Tables) | 12 Months Ended
--- | ---
Dec. 31, 2019
Fair Value Disclosures [Abstract] |
Schedule of Financial Assets Measured at Fair Value | The Company’s financial assets measured at fair value are as follows (in thousands):
|  | As of December 31, 2019 |  |  | As of December 31, 2018 |
|  | Fair Value |  |  | Level 1 |  |  | Level 2 |  |  | Fair Value |  |  | Level 1 |  |  | Level 2 |
Assets: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Cash and cash equivalents: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Cash |  | $ | 463,820 |  |  | $ | 463,820 |  |  | $ | — |  |  | $ | 147,221 |  |  | $ | 147,221 |  |  | $ | — |
Money market funds |  |  | 51,659 |  |  |  | 51,659 |  |  |  | — |  |  |  | 8,343 |  |  |  | 8,343 |  |  |  | — |
Restricted cash |  |  | 1,854 |  |  |  | 1,854 |  |  |  | — |  |  |  | — |  |  |  | — |  |  |  | — |
Short-term investments: |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
Corporate bonds and commercial paper |  |  | — |  |  |  | — |  |  |  | — |  |  |  | 37,151 |  |  |  | — |  |  |  | 37,151 |
U.S. government securities |  |  | — |  |  |  | — |  |  |  | — |  |  |  | 4,995 |  |  |  | — |  |  |  | 4,995 |
Total assets measured and recorded at fair value |  | $ | 517,333 |  |  | $ | 517,333 |  |  | $ | — |  |  | $ | 197,710 |  |  | $ | 155,564 |  |  | $ | 42,146 |
Schedule of Level 3 Instruments | The following table represents the activity of Level 3 instruments (in thousands):
|  | Year Ended |
|  | December 31, 2017 |
Convertible preferred stock warrant liability — beginning balance |  | $ | 9,990 |
Fair value of new warrants issued |  |  | 2,032 |
Change in fair value of preferred stock warrant liability* |  |  | 40,333 |
Reclassification to additional paid in capital upon conversion to common warrants |  |  | (52,355 | )
Convertible preferred stock warrant liability — ending balance |  | $ | — |
* | Recognized in the consolidated statements of operations within other income (expense), net.

X
- Definition Fair value instruments classified in preferred stock warrant liability measured on recurring basis unobservable input reconciliation. + References No definition available. + Details
Name: | roku_FairValueInstrumentsClassifiedInPreferredStockWarrantLiabilityMeasuredOnRecurringBasisUnobservableInputReconciliationTableTextBlock
Namespace Prefix: | roku_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- Definition Tabular disclosure of assets measured at fair value measured on a recurring or nonrecurring basis. Includes, but is not limited to, fair value measurements recorded and the reasons for the measurements, level within the fair value hierarchy in which the fair value measurements are categorized and transfers between levels 1 and 2. + References Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (a) -URI http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258 Reference 2: http://fasb.org/us-gaap/role/ref/legacyRef -Publisher FASB -Name Accounting Standards Codification -Topic 820 -SubTopic 10 -Section 50 -Paragraph 2 -Subparagraph (b) -URI http://asc.fasb.org/extlink&oid=117815213&loc=d3e19207-110258 + Details
Name: | us-gaap_FairValueAssetsMeasuredOnRecurringAndNonrecurringBasisTableTextBlock
Namespace Prefix: | us-gaap_
Data Type: | nonnum:textBlockItemType
Balance Type: | na
Period Type: | duration

X
- References No definition available. + Details
Name: | us-gaap_FairValueDisclosuresAbstract
Namespace Prefix: | us-gaap_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration