Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Hex to AnyNew to Visual Studio Code? Get it now.
Hex to Any

Hex to Any

mahdi bin iqbal

| (0) | Free
See numbers, IEEE 754 floats, text and bytes in decimal, hex, binary, octal and ASCII — on hover, by shortcut, or in a converter panel, and replace them in place.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Hex to Any icon

Hex to Any

See any number, IEEE 754 float, text or byte sequence in decimal, hex, binary, octal and ASCII without leaving the editor.

Hover over a literal, select a value and press a shortcut, or rewrite it in place. Built for firmware, embedded and low-level work where you need 0x40011000, 0b10110010, 3.14f and "Hello" as bytes several times a day.

日本語の説明はこちら

Features

Hover to convert

Hover over a number or float literal to see every representation at once. Each row has buttons to copy the value or replace the literal with it.

  • Decimal, hex, binary and octal, with binary grouped in nibbles
  • Signed reading (INT8 / INT16 / INT32 / INT64) when the top bit is set
  • ASCII character or control code name (LF, ESC, …) for byte-sized values, and the decoded string for values such as 0x48656C6C6F
  • IEEE 754 floats in both 32-bit and 64-bit hex, for example 3.14 → 0x4048F5C3 / 0x40091EB851EB851F

Float rows are copy-only: replacing a float literal with its bit pattern would change what the code does, so in-place replace stays disabled for them.

Convert a selection with a shortcut

Select any text and press Ctrl+Alt+H. Text without a prefix is ambiguous, so every plausible reading is shown.

Selected text What you get
FF The value read as hex, plus the ASCII codes of the text
10 The value read as decimal, hex and binary
-1 Two's complement in the smallest width that fits
3.14 IEEE 754 single- and double-precision hex
greeting ASCII codes of each character (hex / decimal / binary)
0x48, 0x65, 0x6C, 0x6C, 0x6F The byte list decoded to "Hello"

Replace in place

Press Ctrl+Alt+J on a value and pick a format to rewrite it in place, or click the replace button in the hover. With multiple cursors, every location is converted to the same format.

Converter panel

Open with Ctrl+Alt+Shift+H. Type in any field and the others update as you type.

  • Number: DEC / HEX / BIN / OCT / ASCII fields kept in sync, an 8 / 16 / 32 / 64-bit width switch, clickable bits, and the signed value
  • Float ⇄ IEEE 754 hex: type a decimal float to get its 32-bit and 64-bit hex bits, or paste either hex value to get the float back
  • Text ⇄ ASCII codes: convert between text and hex, decimal or binary byte lists, in either direction
  • Follows your color theme, light or dark

Supported literals

Form Example
Decimal 255, 1_000_000
Hex 0xFF, 0FFh
Binary 0b1010_1010
Octal 0o17
Float 3.14, .5, 1e-3, 2.0f
Verilog / SystemVerilog 8'hFF, 4'b1010, 'd10
C / C++ / Rust / JS suffixes 255U, 0xFFUL, 10n

Shortcuts

Command Windows / Linux macOS
Show conversions for the selection / value at the cursor Ctrl+Alt+H Ctrl+Option+H
Convert and replace Ctrl+Alt+J Ctrl+Option+J
Open the converter panel Ctrl+Alt+Shift+H Ctrl+Option+Shift+H

All three are also in the editor's right-click menu and the Command Palette (search for "Hex to Any"). You can rebind them in Keyboard Shortcuts.

Settings

Setting Default Description
hexToAny.hover.enabled true Show conversions when hovering with the mouse
hexToAny.hover.decimal true Also show the hover for plain decimal numbers and floats. Turn this off if the hover on every number gets in the way

The shortcut popup works even when these are turned off.

Language

The UI is available in English and Japanese, following VS Code's display language.

Maintainer

Mahdi Bin Iqbal — @mahadihasan9

Hex to Any is a fork of the original Hex Converter, maintained by Mahdi Bin Iqbal.

  • GitHub: github.com/mahadihasan9
  • Email: islammdmahadi942@gmail.com
  • Location: Dhaka, Bangladesh

Credits

Hex to Any is based on the original Hex Converter by shota-m-y, used under the MIT License.

Feedback

Found a bug or have an idea? Please open an issue on GitHub.

License

Released under the MIT License.

Copyright © 2026 Mahdi Bin Iqbal.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft