HackerTube
HomeLongsLikedHistoryWatch laterCategoriesPlaylistsSettings

Will YouTube Ever Run Out Of Video IDs?

Tom Scott1 HN recommender · recommended in 1 month, 2021-2026
YouTube
10.1M views · 10 years ago · explainer · evergreen

Tom Scott explains YouTube's 11-character video IDs, which are base-64 encoded 64-bit numbers, and whether YouTube could ever run out of them. It covers counting systems and base 64 briefly.

HN links it whenever IDs, base64 or random identifier space come up, as a short and pleasant explainer.

Software (other)Internet culture & memes#base64#youtube#videoids#idspace#tomscott

7 comments from Hacker News

@ekipan2026 · in “Cosmologically Unique IDs”

I forget the context but the other day I also learned about Snowflake IDs [1] that are apparently used by Twitter, Discord, Instagram, and Mastodon. Timestamp + random seems like it could be a good tradeoff to reduce the ID sizes and still get reasonable characteristics, I'm surprised the article didn't explore there (but then again "timestamps" are a lot more nebulous at universal scale I suppose). Just spitballing here but I wonder if it would be worthwhile to reclaim ten bits of the Snowflake timestamp and use the low 32 bits for a random number. Four billion IDs for each second. There's a Tom Scott video [2] that describes Youtube video IDs as 11-digit base-64 random numbers, but I don't see any official documentation about that. At the end he says how many IDs are available but I don't think he considers collisions via the birthday paradox. [1]: link [2]: ▶ this video

CitesView on HN
@Vicinity96352024 · in “PySkyWiFi: Free stupid wi-fi on long-haul flights”

>Author and programmer Sam Hughes, by the way, pushed this to the limit and invented Base 65,536, which includes basically every character from every language. It is ridiculous and unnecessary, but when has that ever stopped programmers? ▶ this video

JokeView on HN
@dajonker2023 · in “Bye Sequence, Hello UUIDv7”

Similar to the old situation in the article, we are using sequential 64 bit primary keys, but we use an additional random 64 bit key for external usage (instead of 128 bit). The external key is base64 encoded for use in URLs which results in an 11 byte string. This hides any information about the size of the data, the creation date of customer accounts (which would be sort of visible with UUIDv7) and prevents anyone from attempting to enumerate data by changing the integer in URLs. I thought about using UUIDs as external keys but the only compelling use case seems to be the ability to generate keys from many decoupled sources that have to be merged later. 64 bit should be enough for most things ▶ this video

CitesView on HN
@ChickenNugger2023 · in “Show HN: Spaghettify – A VSCode Extension to make your code worse with AI”

Two thoughts: * This is ridiculous. Why would you do this? Which made think of this quote: "Which is ridiculous and unnecessary but when has that ever stopped programmers?" from one of my favorite Tom Scott videos: ▶ this video * How to Write Unmaintainable Code: link

JokeView on HN
@kaliszad2021 · in “India is leading IPv6 migration with 61.67% adoption”

Well, have fun guessing 2^64 possibilities. YouTube lists even private videos "secured" using 11 BASE64 characters (66 bits in theory, but they seem to use just 64 bits). You can watch Tom Scott explain it: ▶ this video CG-NAT doesn't really prevent geolocation. Better services will still pin-point you to the nearest city. There are perhaps easier ways to get your private info or your money - phishing and ransomware seem to be still very popular. Don't have to hack games that only relatively few people have. It is more profitable to attack a bigger market or more wealthy institutions or companies in foreign countries. Also, if you hack the central game server, you will have a lot more victims... Choose your poison. I guess, there are no games or other software that cannot be audited in high security installations. At home, having a work computer and a game computer (or a VM with GPU pass through or whatever) might be a safer choice in any case independent of IPv4 or IPv6 usage or the quality of your firewall.

CitesView on HN
@tabletthrowaway2021 · in ““Older unlisted videos will be made private unless you opt out””

Obligatory: ▶ this video There’s too many IDs to iterate through. Searching for $defatltvideoname for some camera is far more effective for that. Scarily so.

CitesView on HN
@apocalyptic0n32021 · in “YouTubers have to declare ads. Why doesn't anyone else? [video]”

Him dancing around and celebrating at the end of his 5 minute explanation of YouTube IDs [1] is such an uplifting thing to watch. 1: ▶ this video

RecommendsView on HN
YouTube's copyright system isn't broken. The world's is.42:29

YouTube's copyright system isn't broken. The world's is.

Tom Scott
9M views • 6 years ago
How to Break YouTube (Copyright Claim your own video)9:57

How to Break YouTube (Copyright Claim your own video)

ymfah
1.6M views • 6 years ago
This Video Has 77,321,815 Views10:39

This Video Has 77,321,815 Views

Tom Scott
77.3M views • 6 years ago
Abusing YouTube Copyright Claims (Tutorial)10:03

Abusing YouTube Copyright Claims (Tutorial)

The Original Ace
865K views • 6 years ago
Copyright Deadlock (The Jimquisition)10:40

Copyright Deadlock (The Jimquisition)

Stephanie Sterling
773K views • 10 years ago
Why do YouTube views freeze at 301?9:48

Why do YouTube views freeze at 301?

Numberphile
301 views • 14 years ago
ARCHIVE TEAM: A Distributed Preservation of Service Attack44:19

ARCHIVE TEAM: A Distributed Preservation of Service Attack

textfilesdotcom
29K views • 15 years ago
Glitch Tokens - Computerphile19:29

Glitch Tokens - Computerphile

Computerphile
353K views • 3 years ago
Weird Kids' Videos and Gaming the Algorithm14:24

Weird Kids' Videos and Gaming the Algorithm

Folding Ideas
1.3M views • 8 years ago
The nightmare videos of childrens' YouTube — and what's wrong with the internet today | James Bridle16:33

The nightmare videos of childrens' YouTube — and what's wrong with the internet today | James Bridle

TED
6M views • 8 years ago
youtube's search function is atrocious now1:58

youtube's search function is atrocious now

ProZD
1.5M views • 2 years ago
Emojli: Behind the Scenes and Why You Should Never Build An App30:58

Emojli: Behind the Scenes and Why You Should Never Build An App

Tom Scott
1M views • 12 years ago
Humans can't read URLs. How can we fix it? - HTTP 20320:21

Humans can't read URLs. How can we fix it? - HTTP 203

Chrome for Developers
59K views • 6 years ago
Why Web Filters Don't Work: Penistone and the Scunthorpe Problem3:37

Why Web Filters Don't Work: Penistone and the Scunthorpe Problem

Tom Scott
3.6M views • 10 years ago
why typing like this is sometimes okay.4:31

why typing like this is sometimes okay.

Tom Scott
5.4M views • 7 years ago
The Presidents discuss their top 5 animes2:25

The Presidents discuss their top 5 animes

Bill
1M views • 3 years ago
Characters, Symbols and the Unicode Miracle - Computerphile9:37

Characters, Symbols and the Unicode Miracle - Computerphile

Computerphile
2.1M views • 13 years ago
My Video Went Viral. Here's Why23:43

My Video Went Viral. Here's Why

Veritasium
5.6M views • 7 years ago
What 40,000 Videos Tell Us About The Trending Tab13:50

What 40,000 Videos Tell Us About The Trending Tab

Coffee Break
1.6M views • 7 years ago
TEENS REACT TO WINDOWS 958:27

TEENS REACT TO WINDOWS 95

REACT
15.3M views • 10 years ago