Converters

Tools for converting values between formats. All processing happens in your browser, so your data is never uploaded.

Choose a conversion tool

Use the timestamp converter to read a Unix time as a date in your own zone and in UTC, the base converter for binary, octal, decimal and hexadecimal with exact arithmetic, and the case converter to move an identifier between camelCase, snake_case, kebab-case and the rest.

Use the unit converter for length, mass, volume, temperature, data and time, and the image converter and resizer when the file itself has to change format or dimensions. Images never leave your device: the decoding and re-encoding happen in the browser.

A value, a representation and a unit

Most of the work in this category is one of two things. Either the value stays the same and only its representation changes - 255 written as 0xFF, a name written in snake_case - or the value is genuinely restated in another unit, as when kilometres become miles or a Celsius reading becomes Fahrenheit.

The distinction matters because the first kind is always exactly reversible and the second usually is not. Converting a number to hexadecimal and back gives you the same number; converting an image to JPG and back does not give you the same image.

Lossless, lossy and approximate

Base and case conversion are lossless in principle, with one exception worth knowing: an acronym loses its boundaries when it is lowercased, so HTTPServer becomes http_server and converts back as HttpServer. Most metric-to-imperial factors are exact by definition rather than approximate, so those conversions carry no error at all.

The genuinely lossy ones are the image tools, where every lossy re-encode discards a little more, and anything involving calendar months or years, which have no exact length and are reported as averages. Where a result is rounded rather than exact, it says so.

Check the edges before you trust the middle

Conversions fail at boundaries far more often than in the ordinary range. A Unix timestamp in seconds handed to something expecting milliseconds lands in 1970; a 64-bit identifier converted through an ordinary JavaScript number loses precision above about nine quadrillion; an image enlarged past its source resolution gains pixels that were never photographed.

The tools here are built to be honest at those edges - arbitrary-precision arithmetic for bases, an explicit unit for timestamps, a refusal rather than a silent blank image when a file is too large for the browser's canvas. When you are checking someone else's conversion, the boundary case is where to start.