# Design a URL Shortener

> Design a URL shortening service like bit.ly. How would you generate unique short URLs and handle billions of redirects?

Canonical: https://www.internhack.in/learn/interview/system-design-interview/sd-url-shortener
Last updated: 2026-11-28

Difficulty: Intermediate

## Question

Design a URL shortening service like bit.ly. How would you generate unique short URLs and handle billions of redirects?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Hashing, Base62 Encoding, Database Design, Caching, Redirection

Previous: [API Design & Best Practices](https://www.internhack.in/learn/interview/system-design-interview/sd-api-design) · Next: [Design a Chat Application](https://www.internhack.in/learn/interview/system-design-interview/sd-chat-app) · [All of System Design Basics](https://www.internhack.in/learn/interview/system-design-interview)

## More System Design Basics questions

- [Design a Rate Limiter](https://www.internhack.in/learn/interview/system-design-interview/sd-rate-limiter)
- [Design a Notification System](https://www.internhack.in/learn/interview/system-design-interview/sd-notification)
- [Design an Authentication System](https://www.internhack.in/learn/interview/system-design-interview/sd-auth-system)
- [Caching Strategies Deep Dive](https://www.internhack.in/learn/interview/system-design-interview/sd-caching)
- [Message Queues (RabbitMQ, Kafka)](https://www.internhack.in/learn/interview/system-design-interview/sd-message-queues)
- [Microservices vs Monolith](https://www.internhack.in/learn/interview/system-design-interview/sd-microservices)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [System Design Basics](https://www.internhack.in/learn/interview/system-design-interview)
