Convert Solana Lamports to SOL
Free to download on every platform. Comes pre-installed on BotFone, BotPad and BotFlip — with extra free apps included.
About this app
WHAT IT DOES
Convert Solana Lamports to SOL enables you to convert between Solana's denominations: lamports (the smallest unit) and SOL (the standard unit). Solana uses lamports for precise value calculations, with 1 SOL equal to 1,000,000,000 lamports (10^9). This tool takes a value in either lamports or SOL and displays the equivalent in the other denomination, with proper formatting and precision. This is essential for developers, users, and anyone working with Solana transactions who needs to understand the relationship between these units. The tool handles large numbers using ethers.js BigNumber, ensuring accuracy even for very large values. It provides clear results showing the conversion in both denominations.
HOW TO USE
Connect your wallet using the BGWallet connector (required for context). Select the input format: "Lamports" for the smallest unit or "SOL" for the standard unit. Enter the value in the input field. Click "Convert" to compute the equivalent values. The tool displays the input value, the value in lamports, and the value in SOL, with proper formatting. You can copy the results to your clipboard for further use. The tool provides real-time validation and error handling for invalid inputs.
TECHNICAL MECHANISM
This tool implements Solana denomination conversion using ethers.js BigNumber for precise arithmetic. The conversion factor is: 1 SOL = 10^9 lamports. The tool accepts input in either lamports or SOL and converts to the other using this factor. For lamports input, the value is treated as a BigNumber and divided by 10^9 for SOL. For SOL input, the value is parsed using ethers.js parseUnits with 9 decimals to handle decimal precision, then converted to lamports. The tool uses the ethers.js formatUnits function to display values with appropriate decimal places. All arithmetic is performed using BigNumber to avoid precision loss with large numbers. The conversion is performed locally in the browser with no data sent to external servers.
WHAT IT CANNOT SEE
This tool cannot verify that the value corresponds to an actual on-chain balance or transaction—it only performs unit conversion. It does not support conversion between other denominations beyond lamports and SOL. The tool cannot handle extremely large numbers beyond JavaScript's safe integer limit without using BigInt; however, ethers.js BigNumber provides arbitrary precision. It does not support automated fetching of wallet balance for conversion; the user must input the value manually. The tool cannot verify the conversion accuracy for decimal values beyond standard precision; it uses the standard 9 decimal places for SOL. It does not support batch conversion of multiple values simultaneously; each conversion must be performed individually. The tool does not support the Solana blockchain directly, as it is built on EVM infrastructure; it only provides a conversion utility.
PLEASE NOTE
This tool is designed for developers and users working with Solana units. Lamports is the smallest unit and is used for precise calculations. SOL is the standard currency unit. 1 SOL = 1,000,000,000 lamports (10^9). The tool uses ethers.js for precise conversions and supports very large numbers. The conversion is performed locally in the browser and is never transmitted to external servers. The tool is read-only and does not require any on-chain interactions. Always verify the conversion results before using them in transactions or smart contracts. The tool is intended for testing, development, and educational purposes. Note that this tool runs in an EVM environment and does not connect to Solana blockchain.