---
spec: JVMS
title: "The Java Virtual Machine Specification"
edition: "Java SE 13 Edition"
java_version: 13
chapter: "Chapter 6. The Java Virtual Machine Instruction Set"
section: "6.5.i2l"
heading: "i2l"
parent: "6.5. Instructions"
source: https://docs.oracle.com/javase/specs/jvms/se13/html/jvms-6.html#jvms-6.5.i2l
id: "6.5.i2l"
url: https://jvm.obfuscated.software/jvms/se13/6.5.i2l.html
raw: https://jvm.obfuscated.software/jvms/se13/6.5.i2l.md
---

# i2l

## Operation

Convert `int` to `long`

## Format

```
i2l
```

## Forms

*i2l* = 133 (0x85)

## Operand Stack

..., *value* →

..., *result*

## Description

The *value* on the top of the operand stack must be of type `int`. It is popped from the operand stack and sign-extended to a `long` *result*. That *result* is pushed onto the operand stack.

## Notes

The *i2l* instruction performs a widening primitive conversion (JLS §5.1.2). Because all values of type `int` are exactly representable by type `long`, the conversion is exact.
