Compiling WebAssembly experience

Decimal to Binary

Convert a base-10 number into binary.

Enter a positive whole number to run the decimal-to-binary conversion through the compiled C/WebAssembly logic.

Whole numbers only, up to 32-bit range.

Binary Result

00000000

Binary to Decimal

Convert a binary string back into base-10.

Enter a binary value to send it through the matching binary-to-decimal conversion implemented in C and compiled for the browser.

Use only 0s and 1s, up to 32 characters.

Decimal Result

0

Project Details

A small C and WebAssembly project focused on number conversion.

I built this piece as part of my portfolio to show the full path from lower-level logic in C to a browser-based interface that people can actually use and evaluate.

  • 2 Two conversion paths shown in one interface.
  • C Core conversion logic written in C, then compiled for the web.
  • 32-bit Input length and validation reflect the limits of this implementation.

Technical Focus

C compiled for the browser

The main goal here is showing that the conversion logic can be authored in C and still run directly in the browser through WebAssembly.

Interface Choices

Input rules are visible in the UI

The fields only accept valid characters for each number system, so the behavior of the converter is clearer right away.

Portfolio Context

A project that reflects both code and presentation

In my portfolio, this project represents both implementation and presentation: the code matters, and so does how the work is shown.