Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Imperial to Metric Converter

p0shkarp0shkar26 downloads

Plugin to convert measurements between imperial and metric.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

Plugin to convert measurements between imperial and metric.

Usage:

Use the command palette, right click menu or select text and run commands.

Examples:

  • Convert a simple value: select 12 ft and run "Convert selection" → 3.66 m (default 2 decimals)
  • Mixed units: select 5 ft 3 in → converts to 1.60 m
  • Fractions: select 1 1/2 in → converts to 3.81 cm
  • Insert original + converted: select 12 ft and run "Insert original + converted" → 12 ft (3.66 m)
  • Auto-convert on paste: copy 5 ft and paste → converts to 1.52 m

Features:

Conversion

  • Convert selection: replaces
  • Insert original + converted: inserts original (converted) so you can keep both.
  • Input: prompts for an input value which is displayed but not inserted into the document.Convert

Hover Preview

  • Toggle: inline hover preview to show converted values on mouseover in the editor.
  • Different decimal settings: you can configure how many decimals the converted value will be and set a different number of decimals that the hover preview will show.Hover

Auto-Convert on Paste

  • Toggle: auto-convert pasted measurements into the active editor (opt-in setting).Auto-Convert on Paste

Parsing

  • Parses fractions (1/2), mixed numbers (1 1/2) and mixed-unit expressions (5 ft 3 in).

Supported units (aliases recognized):

  • Length (imperial): in, ft, yd, mi and many spelled forms and localized names (inch, inches, foot, feet, pulgada, zoll, etc.)
  • Length (metric): mm, cm, m, km and spelled forms (meter, metre, metro, etc.)
  • Mass (imperial): oz, lb, st, ton (configurable ton: short/metric)
  • Mass (metric): g, kg, t (tonne)
  • Volume: cup, pt, gal, l, ml - uses US definitions for gallon/pint

Settings

  • Define the default measurement system (Metric or Imperial)
  • Specify number of decimals when converting and when hovering
  • Define preferred units of measurements or set it to auto to let the plugin decide
  • Toggle Inline Hover and Auto-Convert on Paste settings.Settings

Known limitations:

  • Parsing relies on heuristics and regexes; some complex or ambiguous text may not be parsed correctly.
  • Hover preview uses a simple line-based heuristic and may show the first matching measurement on a line rather than the exact token under the cursor.
  • This plugin does not currently provide unit-aware rounding strategies beyond the configured decimal places.
  • Localization: unit aliases include several common translations but are not exhaustive.
  • Edge cases: nested brackets, multiple measurements on the same line, or inline Markdown formatting may interfere with parsing.
  • If you see incorrect gallon/pint conversions, note this plugin currently only uses US definitions for gallon/pint/ton.

To Do:

  • Adding an "input" button when using the "Convert Input", so the conversion is pasted into the current document and not only displayed.
  • Add conversions for temperatures.
  • Add support for multiple values in a sentence (the same row of text).
  • Add support for "inches" and not just "in".
  • Add support for missing symbols (eg. "'" for feet).
  • Change "mL" to "ml".
  • Add support for ranges (eg. "10-15 ft" or "3-5 cm").
  • Make dynamic options for the toggles, eg. make the text change in the right click menu and command palette update from "enable ..." to "disable ..." instead of the more general "toggle ...".
  • Background color selection for the inline hover.

Install from the Obsidian Community Plugin store

  1. Open Obsidian.
  2. Go to Settings -> Community plugins.
  3. Make sure Safe Mode is off.
  4. Click Browse.
  5. Search for "Imperial to Metric Converter".
  6. Click Install, then Enable.
  7. Open the plugin settings and configure your preferences.

Caveat

I'm not a developer, therefore this plugin and its current implementation are largely vibe coded. The feature set is functional, but the codebase may still contain rough edges, assumptions, and areas that need cleanup or hardening.

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

Oskar Norén - p0shkar

Project Link - ImperialToMetric-for-Obsidian

Support

Support me with liquid energy:

HealthExcellent
ReviewSatisfactory
About
Convert measurements between imperial and metric, parsing fractions, mixed numbers, and mixed-unit expressions (e.g., 1/2, 1 1/2, 5 ft 3 in). Show inline hover previews, insert original (converted) pairs, and optionally auto-convert pasted measurements with configurable decimal precision and broad unit-alias support.
UtilitiesEditingFormatting
Details
Current version
0.1.0
Last updated
Last month
Created
Last month
Updates
1 release
Downloads
26
Compatible with
Obsidian 0.9.12+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
p0shkarp0shkarp0shkar
GitHubp0shkar
  1. Community
  2. Plugins
  3. Utilities
  4. Imperial to Metric Converter

Related plugins

Editing Toolbar

The Editing Toolbar is modified from cMenu, which provides more powerful customization settings and has many built-in editing commands to be a MS Word-like toolbar editing experience.

Sort and Permute lines

Sort and Permute lines in whole file or selection.

List Callouts

Create simple callouts in lists.

Symbols Prettifier

Prettify the symbols with actual symbols you commonly type, like arrows.

Smart Typography

Convert quotes to curly quotes, dashes to em dashes, and periods to ellipses.

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Advanced Tables

Improved table navigation, formatting, and manipulation.

Thino

Quickly capture memos and display them in the sidebar with a heatmap. (Closed source)