Unit Converter
Script for Adobe Illustrator
ㅤ
Description
The Unit Converter script for Adobe Illustrator is a powerful and intuitive tool designed to streamline unit conversions directly within your workflow. This script provides real-time conversion between 10 different measurement units commonly used in design and print work, making it easy to work across different measurement systems without manual calculations.
ㅤ
10 Supported Units:
- Pixels (px) - Digital screen measurements
- Points (pt) - Traditional typography unit
- Picas (pc) - Print layout measurements
- Inches (in) - Imperial system
- Feet (ft) - Imperial system
- Yards (yd) - Imperial system
- Millimeters (mm) - Metric system
- Centimeters (cm) - Metric system
- Meters (m) - Metric system
ㅤ

ㅤ
The script features a live conversion calculator where entering a value in any unit field instantly updates all other unit fields, allowing you to see equivalent measurements at a glance. Additionally, it can extract dimensions from selected objects in your document, making it perfect for quickly converting existing artwork measurements or planning new designs with specific dimensional requirements.
ㅤ
Key Features
- Real-Time Conversion: Enter a value in any unit field and instantly see conversions across all supported units
- Object Dimension Integration: Use width or height from selected objects as conversion base values
- Multiple Object Support: Navigate through multiple selected objects to convert their dimensions
- Document-Aware: Automatically detects and highlights your document's current ruler unit
- Keyboard Shortcuts: Use Up/Down arrow keys to increment/decrement values (Shift for larger steps)
ㅤ
Installation
1. Download the Unit Converter.jsx script file.
2. Place the script in your Adobe Illustrator Scripts folder:
⮑ Mac: /Applications/Adobe Illustrator <Version>/Presets/<Language>/Scripts
⮑ Windows: C:\Program Files\Adobe\Adobe Illustrator <Version>\Presets\<Language>\Scripts
3. Restart Adobe Illustrator if it's already running
4. Access the script via File > Scripts > Unit Converter
5. Alternatively, run it directly via File > Scripts > Other Script... and browse to the file location
Tip: You can also drag and drop the .jsx file directly onto the Illustrator workspace to run the script instantly – no installation needed.
ㅤ
ㅤ
Using the Script
ㅤ
🅰 Basic Usage: Manual Conversion
1. Launch the Script
- Go to File > Scripts > Unit Converter
- The Unit Calculator dialog will appear
ㅤ
2. Enter a Value
- Click on any input field (or click its label to focus)
- Type a numeric value
- All other unit fields will automatically update with converted values
ㅤ
3. Use Keyboard Shortcuts
While focused on any input field:
- Press Up Arrow to increase the value by 1
- Press Down Arrow to decrease the value by 1
- Hold Shift + Up/Down Arrow for increments of 5
ㅤ
4. Default Behavior
- When opened, the calculator defaults to "1" in your document's current ruler unit
- If no document is open, it defaults to 1 point (pt)
ㅤ
ㅤ
🅱 Advanced Usage: Converting Object Dimensions
When you have objects selected in your document, you can use their actual dimensions as the conversion base:
ㅤ
1. Select Object(s)
- Select one or more objects in your Illustrator document
- Run the script
ㅤ
2. Enable "Use Selected Object Value"
- In the Options panel, check the "Use Selected Object Value" checkbox
- The Width/Height radio buttons and Next Object navigation will become enabled
ㅤ
3. Choose Dimension
- Select Width to convert the object's width
- Select Height to convert the object's height
- All unit fields will update to show the selected dimension in different units
ㅤ
4. Navigate Multiple Objects (if multiple objects are selected)
- Click the ← (Previous) button to view the previous object's dimensions
- Click the → (Next) button to view the next object's dimensions
- The navigation cycles through all selected objects
- Switch between Width/Height at any time to see different dimensions
ㅤ
5. Return to Manual Mode
- Uncheck "Use Selected Object Value" to return to manual entry mode
- The calculator will reset to 1 unit in your document's ruler unit
ㅤㅤ
Understanding the Interface
The Unit Calculator dialog is organized into several sections:
ㅤ
Main Conversion Area
- Left Column: Unit labels (Pixels, Points, Picas, etc.)
- Center Column: Input fields for entering/viewing values
- Right Column: Unit symbols (px, pt, pc, etc.)
ㅤ
Options Panel
- Use Selected Object Value: Toggle to use dimensions from selected objects
- Width/Height: Choose which dimension to convert
- Next Object: Navigation controls for multiple selections (← and → buttons)
ㅤ
Active Field Indicator
- The input field matching your document's ruler unit will be automatically focused when the dialog opens
- This makes it quick to start entering values in your preferred unit
ㅤ
ㅤ
☻ Wrap Up
This tool is designed to save you time and remove the guesswork from unit conversions. Thank you for using the Unit Converter script—we look forward to it becoming an essential part of your toolkit.
ㅤ