Xfinity remote codes

Whether you need a code depends on the remote. The XR16 needs none: press the Microphone button and say "Program remote". The XR15 takes the first five-digit code for your TV brand after you hold xfinity and Mute for five seconds. The XR11 has a Setup button and a code search: Setup, 9-9-1, then CH ^ until the TV turns off. The only TV code list we found on xfinity.com is in its XR2 and XR5 guide, which starts Samsung at 10812, LG at 11265, Sony at 11100, Vizio at 11758 and TCL at 12290. All 339 brands are below.

Which Xfinity remote do you have?

Remove the battery cover to read the model number, then use the row that matches. The buttons help too: the XR11 has a Setup button, the XR15 has number buttons but no Setup button, and the XR16 has neither.

How to program each Xfinity remote to a TV, from Xfinity's support page and remote guide, checked October 15, 2026
RemoteHow to tellWhat to doType a code?
XR16 Voice RemoteNo Setup button and no number buttonsAim it at your TV Box, press the Microphone (Voice) button, say "Program remote" and follow the on-screen instructions.No
XR15 Voice RemoteNumber buttons, no Setup buttonHold xfinity and Mute, then type the first five-digit code for your TV brand. Steps below.Yes, five digits
XR11 Voice RemoteHas a Setup buttonUse Xfinity's Remote Code Lookup tool, or the Setup, 9-9-1 search below.Yes, or search
XR2 and XR5Model number starts with XR; Setup buttonHold Setup and type a code from the list on this page.Yes, five digits

Xfinity's Remote Code Lookup tool is at xfinity.com/support/remotes. For the XR11, URC's support site has a CodeFinder tool.

Xfinity TV codes for 20 popular brands

Try the first code in a row, then the next, until the TV turns off and its volume works. The codes are in the order Xfinity's guide prints them.

Xfinity TV codes by brand, from the XR2 and XR5 guide, checked October 15, 2026
TV brandCodes, in the order printed
Samsung10812, 10702, 10178, 10030, 11959, 11632, 11575, 11060, 10814, 10766, 10587, 10482, 10427, 10408, 10329, 10217, 10056, 10032, 10019, 11903, 12268, 12280, 12281, 12284
LG11265, 10178, 10700, 10442, 10856, 11178, 11530, 11637, 11758, 11934, 11993, 12248, 12268, 12269, 12270, 12271, 12284
Sony11100, 10000, 10011, 10353, 10834, 11317, 11400, 11685, 11786, 11791, 11904, 11925
Vizio11758, 10864, 10885, 11756, 12247
TCL12290, 12291, 12292, 12293
Hisense10748, 11660, 12296
Panasonic10250, 10051, 10055, 10650, 11291, 11941, 10162, 10226, 10375, 11310, 11410, 11919, 12273, 12274
Toshiba10154, 11256, 10156, 10060, 10036, 10650, 10845, 10149, 10736, 10832, 11343, 11369, 11704, 11935, 11156, 11356, 11656, 11265, 12294
Sharp10093, 10153, 10165, 10386, 11602, 10491, 10851, 12284, 12285, 12286
Philips11454, 10054, 10037, 10690, 11483, 12275, 12284
Insignia10171, 11780, 11892, 11204, 11326, 11517, 11641, 11963, 12002, 12258, 12263, 12264, 12267
Element11687, 12260
Sanyo10154, 10088, 10159, 10232, 10484, 10735, 10798, 10799, 11907, 12284
Westinghouse10000, 10451, 10885, 10889, 10890, 11282, 11577
Magnavox11454, 11866, 10054, 10030, 10706, 11990, 11963, 11913, 11904, 11525, 11365, 11198, 11254, 10386, 10802, 10230, 10187, 10186, 10179, 10096, 10036, 10028, 10024, 10020, 12275, 12284
RCA11447, 10047, 12002, 11953, 11948, 11922, 11919, 11907, 11781, 10747, 10278, 10254, 10090, 10679, 11047, 11147, 11247, 11347, 11547, 11958, 10038, 10029, 10019, 10018, 12268, 12284, 12290, 12291, 12292, 12293
Emerson10154, 10451, 10236, 10463, 10180, 10178, 10171, 11963, 11928, 11913, 11911, 11909, 11905, 11665, 10282, 10280, 10270, 10183, 10181, 10179, 10177, 10038, 10019, 10623, 12248, 12258, 12270, 12284, 12285, 12288
Haier11034, 10768, 11009, 12295
JVC10053, 10036, 10160, 10169, 10731, 11349, 11253, 12265
Sylvania11864, 10054, 10030, 10171, 11271, 10020, 10028, 10065, 10096, 11314, 11665, 11963, 12248, 12258, 12270, 12284
All 339 TV brands in Xfinity's guide
Every TV brand in the XR2 and XR5 guide's "Setup codes for TVs", in the guide's alphabetical order
TV brandCodes, in the order printed
3M10737, 11616, 11655
A-Mark10003
Abex10032
Accurian11803
Acer12244, 12245
Action10873
ADC12246
Admiral10093, 10463, 12246, 12258, 12286
Advert10761, 10783, 10815, 10817, 10842, 11933, 12267
Adventura10046
Aftron10891
Aiko10092
Aiwa10701, 11914, 12248, 12270
Akai10030, 10060, 10098, 10672, 10702, 10812, 11207, 11385, 11675, 11676, 11688, 11689, 11692, 11903, 11935
Alaron10179, 10183, 10216
Albatron10700, 10843
Amark12286
Ambassador10177
American Action10180
Ampro10751
Anaba12249
Anam10180
Anam National10055
AOC10030, 12250, 12268, 12284, 12287, 11590, 11365
Aomni11623
Apex Digital10156, 10748, 10879, 10765, 10767, 10890, 11991
Archer10003, 12286
Aspect12251
Astar11531, 11738
Audiovox10451, 10180, 10092, 10003, 10623, 10802, 10846, 10875, 11284, 11951, 11952
Aurora Systems10801
Aventura10171
Bang & Olufsen12252
Belcor10019, 12284
Bell & Howell10154, 10016, 12246, 12293
BenQ11032, 11315
BlueSky12253, 12254
Bradford10180
Brillan11007, 11257, 11258
Brockwood10019
Broksonic10236, 10463, 12258
Brokwood12284
Bush10355
Byd:sign11309
Cadia11283
Candle10030, 10046, 10056, 10186, 12284
Canon10793, 11396
Carnivale10030
Carver10054, 10170
Casio10611, 11205
CCE10217, 10329
Celebrity10000
Celera10765
Centrios12255
Changhong10765
Cineral12253
Cinego11986
Citizen10060, 10030, 10092, 10046, 10056, 10186, 10280, 10561, 11669, 11671, 11672, 11928, 11935, 12246, 12258, 12284, 12287
Clarion10180
Classic11984
CLP Classic12284
Coby12017, 12256, 12257
Colortyme12284
Commercial Solutions11447, 10047
Compaq10749
Concerto10056, 12284
Contec10180, 12287
Craig10180
Crosley10054
Crown10180
CTX12286
Curtis Mathes10047, 10054, 10154, 10451, 10093, 10060, 10702, 10030, 10145, 10166, 10016, 10056, 10466, 10747, 11147, 11347, 11919, 12246, 12284, 12293
CXC10180
CyberHome10794
Cybervision12253
Cytron11326, 12003
Daewoo10451, 10092, 10019, 10066, 11661, 10623, 10067, 10091, 10661, 10672, 11909, 11928, 12268, 12284
Daytron10019, 12284
Dell11264, 11080, 11178, 11403
Delta11369
Denon10145, 10511
Denstar10628
Diamond Vision11801, 11996, 12288
Digistar11565, 12267
Digital Lifestyles11765, 11822
Digital Projection Inc.11482, 11725, 11726, 11750
Dimensia12293
Disney12258, 12259
Dream Vision11297
Dukane12251
Dumont10017
Durabrand10463, 10180, 10178, 10171, 10003, 11034, 12258
Dwin10093, 10747, 10774
Dynatech10049
Dynex11463, 11780, 11785
Elki10735
Electroband10000, 12287
Electrograph11755, 11623
Electrohome10463, 10446, 11570, 11670, 11672, 11760, 11761, 12284
Elektra12246
Element11687, 12260
Emerson10154, 10451, 10236, 10463, 10180, 10178, 10171, 11963, 11928, 11913, 11911, 11909, 11905, 11665, 10282, 10280, 10270, 10183, 10181, 10179, 10177, 10038, 10019, 10623, 12248, 12258, 12270, 12284, 12285, 12288
Emprex11422, 11546, 11765
Envision10030, 10813, 11365, 12250, 12284
Epson11122, 11290
Erae11222
ESA10812, 10171, 11963
Fisher10154, 10159
Fujitsu10179, 10186, 10683, 10853, 12008, 10809
Funai10180, 10171, 10179, 11904, 11963, 11271, 12248, 12270
Futuretech10180
Gateway11755, 11756
GE11447, 10047, 10051, 10451, 10178, 10021, 10027, 10029, 10055, 10135, 10279, 10282, 10747, 11907, 11919, 11922, 11347, 12284, 12290, 12293
Gibralter10017, 10030, 10019, 12284
Go Video10886, 11823, 11831
GoldStar10178, 10030, 10002, 10019, 12248, 12268, 12269, 12270, 12271, 12284
Goodmans10360
Gradiente10392, 12284
Grundig10683
Grunpy10180, 10179
H & B11366
Haier11034, 10768, 11009, 12295
Hallmark10178, 12284
Hanns.G11783
Hannspree11348, 11745, 11783, 12261
Harley Davidson10043, 10179, 11904
Harman/Kardon10054, 10078
Harvard10180, 10068
Hauppauge12262
Havermy10093
Helios10865
Hello Kitty10451
Hewlett Packard11494, 11502, 11088, 11089, 11101
Hisense10748, 11660, 12296
Hitachi11145, 10145, 12243, 12143, 11904, 11345, 10797, 10737, 10724, 10723, 10413, 10279, 10227, 10173, 10151, 10097, 10095, 10056, 10038, 10032, 10016, 11960, 12246, 12248, 12251, 12270, 12284
Hyundai10849, 11219, 11294
I-Inc11746
iLo11286, 11603, 11665, 11684, 11990
Infinity10054, 12275
InFocus10736, 10738, 10741, 10781, 11516, 12293
Initial11990
Insignia10171, 11780, 11892, 11204, 11326, 11517, 11641, 11963, 12002, 12258, 12263, 12264, 12267
Inteq10017
IX10877
Janeil10046
JBL10054
JCB10000
JC Penney12268, 12284, 12293
Jensen10761, 10050, 10815, 10817, 11299, 11933, 12284
JVC10053, 10036, 10160, 10169, 10731, 11349, 11253, 12265
Kamp10216
Kawasaki12266
Kawasho10216, 10308, 12284
Kaypani10052
KDS11687
KEC10180
Kenwood10030, 10019, 12284
KLH10765, 10767
Kloss10024, 10046, 10078
Knoll Systems10781
Konka10628, 10632, 10638, 10707, 11385, 11831, 11939
Kost11262, 11483
Kreisen10876, 11474
KTV10180, 10030, 10183, 10217, 10280, 12274, 12287
Kurazai12246
Lasonic12288
Legend12267
LG11265, 10178, 10700, 10442, 10856, 11178, 11530, 11637, 11758, 11934, 11993, 12248, 12268, 12269, 12270, 12271, 12284
Llyod’s11904
Lodgenet12246, 12293
Loewe10136
Logik10016, 12246, 12293
Luce10837, 11031
Luxman10056, 12284
LXI10047, 10054, 10154, 10156, 10178, 10747, 12248, 12270, 12284, 12293
Magnavox11454, 11866, 10054, 10030, 10706, 11990, 11963, 11913, 11904, 11525, 11365, 11198, 11254, 10386, 10802, 10230, 10187, 10186, 10179, 10096, 10036, 10028, 10024, 10020, 12275, 12284
Magnin11907
Majestic10015, 10016, 12246, 12293
Marantz10054, 10030, 10704, 10854, 10855, 11398, 11554, 12284
Matsushita10250, 10650
Maxent11755, 11757
MB Quart11868
Medion12259
Megapower10700
Megatron10178, 10145, 10003, 12251, 12284
MEI12287
Memorex10154, 10463, 10150, 10178, 10016, 10179, 10877, 11570, 11911, 11920, 12246, 12258, 12284, 12293
MGA10150, 10178, 10030, 10019, 10155, 11907, 12268, 12284
Micro11436
Midland10047, 10017, 10051, 10032, 10747
Mintek11990, 11603
Minutz10021
Mitsubishi11250, 10093, 10150, 10178, 10014, 10019, 10098, 10155, 10331, 10358, 10592, 10836, 10868, 11278, 11392, 12268, 12284
Monivisoin10700, 10843
Montgomery Ward12246, 12293
Motorola10093, 10055, 10835, 12286
Moxell10835
MTC10060, 10030, 10019, 10049, 10056, 10091, 10216, 12268, 12284, 12287
Multitech10180, 10049, 10217
Myron & Davis12289
NAD10156, 10178, 10866, 10037, 10056, 12284
Nakamichi11493
Naxa11998
NEC10030, 10019, 10036, 10056, 10170, 10434, 10455, 10497, 10882, 11398, 11704, 11797, 12026, 12268, 12284
NetTV11755
Nikko10178, 10030, 10092, 12284
Niko11581
Noblex10430
Norcent10748, 10824, 11089, 11365, 11590, 11591
Norwood Micro11286, 11296, 11303
Noshi10018
NTC10092
NuVision11657
Olevia11144, 11240, 11331, 12272
Olympus11342
Onwa10180
Optimus10154, 10250, 10166, 10650, 11913, 12273
Optoma10887, 11348, 11674
Optonica10093, 10165, 12286
Orion10236, 10463, 11463, 10179, 11905, 11911, 12258
Panasonic10250, 10051, 10055, 10650, 11291, 11941, 10162, 10226, 10375, 11310, 11410, 11919, 12273, 12274
Penney10047, 10156, 10051, 10060, 10178, 10030, 11919, 11907, 10747, 10309, 10149, 10032, 10027, 10021, 10019, 10018, 10003, 10002, 11347
Petters11523
Philco10054, 10030, 10019, 10020, 10028, 10096, 10302, 12268, 12284
Philips11454, 10054, 10037, 10690, 11483, 12275, 12284
Phillips-Magnavox12275
Pilot10030, 10019, 12284
Pioneer10166, 10679, 10866, 10038, 10172, 11398, 12284
Piva12277, 12276
Planar11496
Polaroid10765, 12063, 12002, 11991, 11962, 11769, 11767, 11766, 11762, 11687, 11565, 11538, 11523, 11385, 11341, 11328, 11327, 11326, 11316, 11314, 11286, 11276, 11262, 10865, 12267
Portland10092, 10019, 12268, 12284
Prima10761, 10815, 10817, 11389, 11785, 11933, 10783, 12267
Princeton10700, 10717
Princeton Graphics12286
Prism10051
Proscan11447, 10047, 11347, 10466, 10747, 11922, 12291, 12293
Proton10178, 10003, 10031, 10052, 10466, 12284
Protron11320, 11323
Proview10835, 11687
Pulsar10017, 10019, 12284
Puneet11546
Pvision11222
Quasar10250, 10051, 10055, 10165, 10650, 10219, 11919, 12273, 12274
RadioShack10047, 10154, 10180, 10178, 10030, 10165, 12248, 12270, 12284, 12290, 12293
RCA11447, 10047, 12002, 11953, 11948, 11922, 11919, 11907, 11781, 10747, 10278, 10254, 10090, 10679, 11047, 11147, 11247, 11347, 11547, 11958, 10038, 10029, 10019, 10018, 12268, 12284, 12290, 12291, 12292, 12293
Realistic10154, 10180, 10178, 10030, 10165, 10019, 10032, 10056, 12248, 12270, 12284, 12293
RevolutionHD11623
Rhapsody10183, 10216, 12287
Runco10017, 10030, 10497, 10612, 11398, 11629
Sampo10030, 11755, 10032, 10052, 11597, 12284
Samsung10812, 10702, 10178, 10030, 11959, 11632, 11575, 11060, 10814, 10766, 10587, 10482, 10427, 10408, 10329, 10217, 10056, 10032, 10019, 11903, 12268, 12280, 12281, 12284
Sansui10463, 11409, 11904, 11911, 11935, 12258, 12282
Sanyo10154, 10088, 10159, 10232, 10484, 10735, 10798, 10799, 11907, 12284
Sceptre10878, 11360, 11599
Scimitsu10019
Scotch10178, 12284
Scott10236, 10180, 10178, 10019, 10179, 10309, 11711, 12284
Sears10047, 10054, 10154, 10156, 10178, 10171, 10015, 10149, 10159, 10168, 10179, 10747, 11007, 11904, 10056, 12284, 12293
Seleco10737, 11297
Selectron12283
Sharp10093, 10153, 10165, 10386, 11602, 10491, 10851, 12284, 12285, 12286
Sharper Image11950
Sheng Chia10093
Sherwood11399
Shogun10019, 12284
Signature10016, 12246, 12293
Signet10800, 10844, 11262
SIM2 Multimedia11297
Simpson10186, 10187
Skyworth11799
Solarism11220
Sole10813, 11031, 11366, 11377, 11483, 11530, 11623, 12075, 12076
Sonic12287
Sony11100, 10000, 10011, 10353, 10834, 11317, 11400, 11685, 11786, 11791, 11904, 11925
Soundesign10180, 10178, 10179, 10186, 12284
Sova11320, 11952
Soyo11546, 11746, 11824, 11826, 11828, 11830, 11831
Spectra12288
Spectricon10003
Spectroniq11687
Squareview10171
SSS10180, 10019, 12284
Starlite10180
Studio Experience10843
SunBrite11420, 11435
Superscan10093, 10864
Supra12284
Supre-Macy10046
Supreme10000
SVA10748, 10587, 10768, 10865, 10870, 10871, 10872, 12289
Sylvania11864, 10054, 10030, 10171, 11271, 10020, 10028, 10065, 10096, 11314, 11665, 11963, 12248, 12258, 12270, 12284
Symphonic10180, 10171, 11904, 11913, 12248, 12270
Syntax11144, 11240, 11331, 11610
Tandy10093, 10218, 12286
Tashiko10588
Tatung10003, 10049, 10055, 11101, 11286, 11287, 11288, 11361, 11503, 11756
TCL12290, 12291, 12292, 12293
Technics10250, 10051
Technol Ace10179
Techview10847, 12004
Techwood10051, 10003, 10056, 12284
Teknika10054, 10180, 10150, 10060, 10092, 10016, 10019, 10056, 10175, 10179, 10186, 10312, 12246, 12268, 12284, 12293
Telefunken10702, 10056, 10101
Telemagic10735
Telernet12246, 12293
Tera10031, 12284
Thomas11904
Thomson10209, 10210, 10625
TMK10178, 10056, 10177, 12284
TNCi10017
Toshiba10154, 11256, 10156, 10060, 10036, 10650, 10845, 10149, 10736, 10832, 11343, 11369, 11704, 11935, 11156, 11356, 11656, 11265, 12294
TruTech11723, 12066
TVS10463
Ultra10391, 11323
Universal10027
US Logic11286, 11303
Vector Research10030
Venturer11865
VEOS11007
Victor10053
Video Concepts10098
Vidikron10054, 10242, 11398, 11629
Vidtech10178, 10019, 10036, 12268, 12284
Viewsonic11755, 12014, 10724, 10775, 10797, 10857, 10864, 10885, 11330, 11342, 11578, 11627, 11742
Viking10046, 10312
Viore11207, 11684, 12278, 12279
Visart11336
Vizio11758, 10864, 10885, 11756, 12247
Wards10054, 10178, 10030, 10016, 10019, 10020, 10021, 10027, 10028, 10029, 10056, 10096, 10165, 10179, 10866, 11156, 12246, 12268, 12284, 12293
Waycon10156
Westinghouse10000, 10451, 10885, 10889, 10890, 11282, 11577
White Westinghouse10463, 10623, 11909, 12248, 12270
WinBook11381, 11503
Wyse11365
Xoceco11469
Yamaha10030, 10019, 10797, 11407, 12268, 12284
Zenith10017, 10463, 11265, 10178, 10092, 10016, 11904, 11909, 11911, 12246, 12248, 12251, 12285, 12258, 12265, 12270, 12271, 12275, 12284
Zonda10003

How to program an Xfinity remote to your TV

XR15 Voice Remote (no Setup button, has number buttons)

  1. Turn on your TV.
  2. Press and hold the xfinity and Mute buttons together for five seconds, until the light at the top changes from red to green.
  3. Type the first five-digit code for your TV brand.
  4. If the light blinks green twice, the code worked. If it blinks red then green, the code didn't work.
  5. Aim the remote at the TV and press Power. If the TV turns off, turn it back on and check that Volume and Mute work.
  6. If the TV doesn't turn off, try the next code for your brand.

Another route from Xfinity: hold xfinity and Info (i) for five seconds until the light turns green, then enter the three-digit pairing code that appears on screen and follow the on-screen steps for power, volume and input.

XR11 Voice Remote (has a Setup button): search for the code

If your TV brand isn't in the Remote Code Lookup tool, Xfinity gives this search:

  1. Turn on your TV.
  2. Press and hold the Setup button until the light at the top changes from red to green.
  3. Enter 9-9-1. The light should blink green twice.
  4. Press CH ^ until the TV turns off.
  5. When the TV turns off, press Setup to save the code.
  6. Press the TV power button on the remote. If the TV turns on, you're all set.

XR2 and XR5: enter a code from the list

  1. Install the batteries and make sure your TV and set-top box are on.
  2. Find your TV brand in the code list below.
  3. Press and hold the Setup button until the status light changes from red to green.
  4. Enter the first code listed for your TV brand. The light should flash green twice.
  5. Press the TV Power button. If the TV turns off, the remote is programmed: turn the TV back on and check VOL +/- and Mute.
  6. If the TV doesn't turn off, or VOL +/- and Mute don't work, repeat with the next code for your brand.

If no listed code works, the XR2 and XR5 guide gives a search: hold Setup until the light turns green, enter 9-9-1, press CH ^ again and again until the TV turns off, then press Setup. The light should flash green twice; press TV Power, and if the TV turns on, the remote is programmed.

Sources: Xfinity's support page for the XR11, XR15 and XR16, and the XR2 and XR5 guide. For a brand-neutral walkthrough, see how to program a universal remote.

Xfinity remote won't program or control the TV

  • The light flashes red, then green, while you type. Xfinity's guide says you may have typed an incorrect code. Check the digits and enter the code again.
  • The light flashes red and nothing responds. Aim the remote at the TV, stay within 15 feet and make sure the set-top box is on and in plain sight, per the guide.
  • Nothing works at all. Xfinity's page says to try changing the batteries.
  • Still stuck. A factory reset erases the link between the remote and the TV Box, so you pair them again afterward.
Xfinity's factory reset sequences, from its support page, checked October 15, 2026
RemoteReset
XR11 Voice RemoteHold Setup until the light turns green, press 9-8-1. The light blinks green twice.
XR15 Voice RemoteHold A (triangle) and D (diamond) for three seconds until the light turns green, press 9-8-1. The light blinks blue three times.
XR16 Voice RemoteHold Info (i) and Home (house icon) for about five seconds until the light blinks, then press Power, Last (back arrow) and Volume Down.
XR2, XR5 and XR11 remotesHold Setup until the light turns green, press 9-8-6. The light blinks green twice. Xfinity lists the XR11 under both sequences.

Need a replacement Xfinity remote?

Xfinity says you can visit any Xfinity Retail Store or have a remote mailed through the Xfinity Assistant. The model number (XR11, XR15 or XR16) is under the battery cover; match it to your TV Box before you buy.

Search Xfinity voice remotes on AmazonAs an Amazon Associate, Universal Remote Codes earns from qualifying purchases. This is an affiliate link, at no extra cost to you. Affiliate disclosure

Controlling an Xfinity TV Box with a GE, RCA or Philips universal remote instead? Use the code finder and pick "Cable or satellite box"; for the TV itself, see codes for Samsung, LG and Vizio TVs.

Common questions

What is the Xfinity remote code for a Samsung TV?

In Xfinity's XR2 and XR5 guide the first Samsung code is 10812, followed by 10702 and 10178. We found no printed list for the XR11 or XR15, so for those use its Remote Code Lookup tool or the XR15 and XR11 steps on this page.

What is the difference between the three-digit and five-digit codes?

On the XR15, holding xfinity and Info (i) for five seconds asks for a three-digit on-screen pairing code, which connects the remote to your TV Box. The five-digit codes are TV brand codes you type to control your TV's power and volume.

How do I program an Xfinity remote without a code?

The XR16 has no code step: aim it at your TV Box, press the Microphone button and say "Program remote". The XR11 has a code search (Setup, 9-9-1, CH ^) for brands missing from the lookup tool, described below.

What if my TV brand isn't in the list?

Xfinity says to use its Remote Code Lookup tool first. If your brand isn't there, the XR11 code search (Setup, 9-9-1, CH ^ until the TV turns off, Setup) or the XR15 first-code steps are the next things to try. Roku TV and onn TVs have no row in the XR2 and XR5 guide.

Sources