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

# iload

## Operation

Load `int` from local variable

## Format

```
iload
index
```

## Forms

*iload* = 21 (0x15)

## Operand Stack

... →

..., *value*

## Description

The *index* is an unsigned byte that must be an index into the local variable array of the current frame ([§2.6](2.6.md)). The local variable at *index* must contain an `int`. The *value* of the local variable at *index* is pushed onto the operand stack.

## Notes

The *iload* opcode can be used in conjunction with the *wide* instruction ([§*wide*](6.5.wide.md)) to access a local variable using a two-byte unsigned index.
