Design a URL Shortener (bit.ly Clone)
Design a URL Shortener (bit.ly Clone)
MediumLLD0% accepted
Design the LLD for a URL shortener service: encode a long URL to short code, redirect short URL to original, track click analytics, support custom aliases, and handle expiration.
Approach
Design URL shortener with Base62 encoding, redirect, analytics, and expiration.
Input
Encode https://www.flipkart.com/very-long-product-url
Output
counter=1000000; base62(1000000)='4c92' -> short URL is domain/4c92
More LLD problems
Browse all coding problems →Scenarios & Expected Answers
Sign in to continue
Create a free account to view answers and mark progress.
- Free forever — no credit card
- Theory Q&A with detailed answers
- Points, streaks & leaderboards