Processed on your device
Back to tools
Color · All tools

CSS Clamp Generator

Build a fluid font-size clamp from pixel sizes and viewport endpoints, with an explicit root font size. Free css clamp generator online, with no installation or account.

Your files and input are processed in this browser. No uploads or accounts.

Tool capabilities

Input
Options
Output
CSS · Options

How to use CSS Clamp Generator

Build a fluid font-size clamp from pixel sizes and viewport endpoints, with an explicit root font size.

  1. Change the colors, text or numeric controls above.
  2. Compare the preview as you adjust the controls.
  3. Copy the output or download it to your device.

CSS Clamp Generator · Example

Input

{
  "min": 16,
  "max": 32,
  "start": 320,
  "end": 1280,
  "root": 16,
  "viewport": 800,
  "text": "LocalKit"
}

Output

font-size: clamp(1rem, 0.66667rem + 1.66667vw, 2rem);

Build a fluid font-size clamp from pixel sizes and viewport endpoints, with an explicit root font size.

Usage notes

Inputs and results are processed on this device. Tool content is not sent to a processing server.

Export uses rem and vw. Set the root font size used by your page. The preview simulates the chosen viewport width.

Add or Subtract DaysMove a calendar date forward or backward.AES DecryptAuthenticate and decrypt a LocalKit AES-256-GCM JSON envelope with its password.AES EncryptEncrypt UTF-8 text with AES-256-GCM and a password-derived PBKDF2-SHA-256 key. Every run uses a fresh salt and nonce.Age CalculatorCalculate completed years, months and days between a birth date and a reference date.Anagram CheckerCompare letters and numbers after Unicode normalization, ignoring spacing and case.Angle ConverterConvert angle units with selectable source and target units and precise local results.Apache Config EditorEdit Apache Config source locally with syntax colors, line numbers, find and replace, undo, file import and download. Source is not executed.Archive Contents ViewerBrowse and search file paths inside ZIP, TAR and TGZ archives. Select files to download locally.

Language

Code examples, format names and technical parser messages may use their original notation.