Hex output is uppercase (A—F) by default — toggle to lowercase (a—f). Binary has no leading zeros in canonical form.
DNA is derived from the binary form in 2-bit chunks. If bit-length is odd, the binary string is left‑padded with one leading 0.
Info
ready
Significant bits
—
Nominal bits (hex nibbles)
—
Nominal leading zero bits
—
Displayed leading zeros
—
Byte length
—
Hex length (displayed)
—
Hex length (canonical)
—
Hex length (bytes-aligned)
—
Binary length
—
DNA length (bases)
—
A-prefix
0
Sidecar
—
Base64 length (chars)
—
About
This converter keeps Decimal, Hexadecimal, Binary, DNA (A=00, T=01, C=10, G=11)
and Base64 in sync for arbitrary-size signed integers using JavaScript BigInt.
A leading - denotes negative values in every field.
Hex: case toggle (A—F ↔ a—f).
Binary: no leading zeros in canonical form (except for zero).
DNA: when the bit length is odd, binary is left-padded with one leading 0 so 2-bit chunks can be formed; editing DNA rebuilds via its 2-bit mapping.
Preserve formatting (default on): keeps leading zeros in Binary and leading A's in DNA while editing. Other fields remain numerically consistent.
Base64: always canonical (no special "preserve" mode). It encodes the minimal big-endian magnitude bytes of the value; for negatives the minus sign is shown outside the Base64 text. Input is normalized (whitespace removed), = padding is auto-completed to a multiple of 4, and only the standard alphabet [A—Za—z0—9+/=] is accepted.
In addition, a special A-prefix sidecar can be attached:
The numeric field A-prefix specifies how many leading A bases are logically prepended to the DNA representation.
When copying Base64 with the Copy Base64 + ~A<n> button, the value is exported together with the prefix marker (e.g. YWJjZA== ~A3).
When pasting a Base64 string containing such a marker, the tool automatically restores the correct DNA sequence including the leading As.
This mechanism ensures that leading information in DNA sequences is not lost when converting back and forth via Base64.
All conversions run locally in your browser. Optional, privacy-friendly analytics via GoatCounter can be toggled in the Disclaimer.
Disclaimer
This tool is provided "as is" without warranties of any kind, express or implied. Use at your own risk.
No guarantee for correctness, completeness, or fitness for a particular purpose. Results may be affected by
browser differences and user inputs.
Not intended for safety-critical, medical, or legal use.
Always verify important results with independent methods.
No liability for direct or indirect damages resulting from the use of this tool.
Inputs are processed locally in your browser; avoid entering confidential or personal data.
Analytics (GoatCounter)
We use GoatCounter for privacy‑friendly, cookie‑free page analytics.
No personal data is stored. Technical information (e.g., browser, OS, screen size, country) may be counted in aggregate.
We respect your browser's Do Not Track (DNT) setting, and you can opt out below.