PX → REM 変換
任意のルートフォントサイズでピクセル、rem、em を相互変換します。
使い方
Convert CSS units
Enter a value, choose its unit and set the root font size. The tool shows the equivalent value in pixels, rem and em.
- Enter a number.
- Choose px, rem or em as the input unit.
- Set the root font size and copy the result.
Root font size
Browsers default to 16px, but users and CSS can change it. Set the root size to match the project you are working on.
よくある質問
Are rem and em the same here?
For the root element they are identical. The converter treats em as relative to the configured root size for simplicity.
Why use rem?
Rem units scale with the user's root font size, which improves accessibility compared with fixed pixels.
関連ツール
CSS フォーマッター
1行に1プロパティ、一貫したインデントで CSS を整形します。
文字列ケース変換
テキストを camelCase、PascalCase、snake_case、kebab-case などに変換します。
カラーコンバーター
ライブプレビュー付きで色を HEX、RGB、HSL の間で変換します。
UUID / GUID ジェネレーター
ランダムなバージョン4 UUID を生成し、1つずつまたはまとめてコピーします。
ハッシュジェネレーター
任意のテキストの MD5、SHA-1、SHA-256、SHA-512 ダイジェストを計算します。
タイムスタンプ変換
Unix タイムスタンプ、ISO 8601、人間が読める現地日時の間で変換します。