Computer Science Tools
Free interactive CS tools — visualise sorting algorithms, convert between number bases, simulate logic circuits and explore fundamental concepts.
Watch sorting algorithms run step by step — bubble, selection, insertion, merge, quick, and heap sort — with adjustable size and speed and Big-O complexity info.
Convert between binary, decimal, hexadecimal and octal with steps.
Add, subtract and multiply binary numbers with working shown.
Apply AND, OR, XOR, NOT, NAND, NOR and bit shifts with aligned bit-column visualization.
Compare time and space complexities of common algorithms interactively.
Visualise the recursion tree for any recurrence relation.
Generate truth tables for any boolean expression.
Build and simulate circuits using AND, OR, NOT and XOR gates.
Convert characters to ASCII codes, hex and binary representations.
Convert signed integers to two's complement step by step.
Build a Huffman tree and encode any string.
Animate push, pop and peek operations on stacks and queues.
Animate breadth-first and depth-first traversal on a custom graph.
Find the network address, broadcast address and usable IP range.
Convert decimal numbers to IEEE 754 binary32 or binary64 format.
Convert text to binary, hex, or decimal bytes and back — full Unicode support, live in both directions.
About these computer science tools & visualizers
Computer science concepts — from algorithmic time complexity and graph traversal to low-level binary representation — are much easier to master when you can watch the state transitions happen step by step. In the Sorting Algorithm Visualizer, you can step through Bubble Sort, Selection Sort, Insertion Sort, Merge Sort, Quick Sort, and Heap Sort while tracking live comparisons, array swaps, and worst/average/best-case Big-O bounds. The BFS & DFS Visualizer and Stack & Queue Visualizer animate frontier expansion, LIFO push/pop frames, and FIFO dequeue operations in real time.
Binary representation, logic & networking
At the hardware and systems level, numbers and instructions are stored as bit patterns. Use the Number Base Converter, Binary Arithmetic Calculator, Two's Complement Calculator, and IEEE 754 Floating-Point Converter to see exactly how signed integers and 32-bit/64-bit floats decompose into sign, biased exponent, and mantissa bits.
For discrete math, digital logic, and networking courses, you can evaluate boolean algebra in the Truth Table Generator, wire interactive AND/OR/XOR/NAND circuits in the Logic Gate Simulator, construct optimal prefix codes with the Huffman Encoding Visualizer, and calculate CIDR host ranges and netmasks in the Subnet Calculator.