Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

What Caused Gangnam Style to Break YouTube?

December 12, 2014
by
Computerphile
YouTube video player
What Caused Gangnam Style to Break YouTube?

TL;DR

Gangnam Style's view count exceeded 2,147,483,647, the limit of a 32-bit integer, causing YouTube to update its storage system. Computers store numbers in binary, and this overflow led to negative values, prompting the shift to 64-bit integers to accommodate the immense data. This incident highlights the challenges faced when managing large datasets in software.

Transcript

So the other week there was an interesting announcement from Google they had to update YouTube because Psy's popular music video, Gangnam Style had managed to amass so many views that it overflowed the 32-bit integer that they were using to store view counts and so I thought it would be interesting to just take a look and remind ourselves of how co... Read More

Key Insights

  • 🫵 The 32-bit integer storage limit of YouTube caused an overflow error when Gangnam Style's view count exceeded 2,147,483,647.
  • #️⃣ Computers store numbers in binary, with each additional bit doubling the number of possible values.
  • 🚫 Switching to unsigned integers would have caused complications in certain calculations, leading YouTube to choose 64-bit signed integers.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: How did Gangnam Style's view count break YouTube?

Gangnam Style accumulated 2,147,483,647 views, surpassing the storage limit of a 32-bit integer used by YouTube. This caused an overflow error, converting positive numbers into negative numbers.

Q: Why didn't YouTube switch to using unsigned integers?

Switching to unsigned integers would have doubled the number of possible stored values, but it would have introduced complications in certain calculations, such as subtracting negative numbers. This is why it is considered bad practice when writing reliable software.

Q: How did YouTube fix the storage limit issue?

YouTube switched from using signed 32-bit integers to signed 64-bit integers. This increased the range of possible values they could store and provided them with 17,432 years worth of views before encountering the same issue.

Q: Why do computers use the two's complement system for storing negative numbers?

The two's complement system allows computers to represent negative numbers using the same bit patterns used for positive numbers. This simplifies calculations and operations involving both positive and negative values.

Summary & Key Takeaways

  • Google had to update YouTube because Psy's music video broke the storage limit of a 32-bit integer by accumulating 2,147,483,647 views.

  • Computers store numbers in binary, with each additional bit doubling the number of possible values that can be stored.

  • YouTube initially used a 32-bit integer to store view counts, but it was not sufficient when Gangnam Style exceeded 2 billion views.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from Computerphile 📚

How Does Diffusion Work in AI Image Generation? thumbnail
How Does Diffusion Work in AI Image Generation?
Computerphile
Apple's $200,000 Computer - Computerphile thumbnail
Apple's $200,000 Computer - Computerphile
Computerphile
IBM, EBCDIC & A Meg-In-A-Box - Computerphile thumbnail
IBM, EBCDIC & A Meg-In-A-Box - Computerphile
Computerphile
VPN & Remote Working - Computerphile thumbnail
VPN & Remote Working - Computerphile
Computerphile
VR with 3D Printed Props - Computerphile thumbnail
VR with 3D Printed Props - Computerphile
Computerphile
Origins of the Web - Computerphile thumbnail
Origins of the Web - Computerphile
Computerphile

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.