Fun with Learning Technology
LearnCoursesQuestionsTracksToolsNewsExplorePractice
Fun with Learning Technology

A new problem, explained clearly, every day.

Subscribe
Learn
  • Lessons
  • Topics
  • News
  • Tools
  • Courses
  • Career tracks
  • Everything
Site
  • About
  • Contact
  • Support
  • Privacy
  • Terms
Get the daily one

One email per new problem. No spam.

Request a tutorial

Requests shape what gets made next.

© 2026 Fun with Learning TechnologyRSS
← All tools

Number Base Converter

Convert between binary, octal, decimal and hex — plus the bit tricks that show up in LeetCode problems.

Bitwise reference

n << 1 = 84 (double)
n >> 1 = 21 (halve, floor)
n & 1 = 0 (even)
n & (n-1)= 40 (clears lowest set bit)
popcount = 3 (set bits)

How to use it

  1. Type a value and pick which base you typed it in.
  2. Every other base updates instantly — click any row to copy it.
  3. Scroll down for the bitwise reference: shifts, parity, clearing the lowest set bit and popcount.