ASCII Text to SVG Converter – Monospaced Diagram Art
Paste ASCII art or text‑based diagrams and convert them into a crisp SVG image. Preserves spacing and can be styled with CSS for documentation.
UD5 Toolkit
Responsive CSS Unit Calculator — Convert pixels to relative units instantly
| PX | EM (base: 16px) | REM (root: 16px) |
|---|
PX (pixels) is an absolute unit — one pixel equals one dot on the screen. EM is relative to the font size of its parent element. REM (root EM) is relative to the root <html> element's font size, which defaults to 16px in most browsers. EM can cascade and compound in nested elements, while REM remains consistent throughout the document.
Divide the pixel value by the parent element's font size. Formula: EM = PX ÷ Parent Font Size (px). For example, if the parent font size is 16px and you want 24px, the result is 24 ÷ 16 = 1.5em. Use our converter above for instant calculations.
Divide the pixel value by the root font size (typically 16px). Formula: REM = PX ÷ Root Font Size (px). For example, 32px ÷ 16px = 2rem. If your project uses the 62.5% trick (html { font-size: 62.5%; }), the root size becomes 10px, so 32px ÷ 10px = 3.2rem.
All major browsers set the default root font size to 16px (equivalent to 100% or medium). This means 1rem = 16px unless you explicitly override it in your CSS. Users can change this in their browser settings for accessibility, which is why relative units like REM are recommended for responsive design.
Relative units like EM and REM make your design responsive and accessible. When users change their browser's default font size, REM-based layouts scale proportionally. EM is useful for components that need to scale relative to their parent. PX values are fixed and don't respond to user preferences, potentially causing accessibility issues.
Use REM for global spacing, typography, and layout dimensions that should be consistent relative to the root. Use EM for component-level styling where elements should scale proportionally to their parent — like padding inside a button or margins within a card. For media queries, REM is preferred as it's consistent regardless of nesting.
Setting html { font-size: 62.5%; } makes the root font size 10px (62.5% of 16px = 10px). This simplifies mental math: 1.4rem = 14px, 2.4rem = 24px, etc. However, some developers avoid this trick because it can interfere with user font-size preferences. Modern tools like this converter make it easy to calculate REM values with the default 16px base.
Yes, EM values compound when nested. If a parent has font-size: 1.5em (24px at 16px base) and a child has font-size: 1.5em, the child's font size becomes 36px (24px × 1.5), not 24px. This cascading effect can make EM tricky in deeply nested structures. REM avoids this issue by always referencing the root element.
Paste ASCII art or text‑based diagrams and convert them into a crisp SVG image. Preserves spacing and can be styled with CSS for documentation.
Estimate the human age equivalent of your goldfish. Learn about goldfish longevity and why proper care helps them live decades rather than months.
Translate your pet snake's age into human years. Select common species like ball python or corn snake for a rough human-age equivalent and life expectancy.
Convert common seam allowances between inches and centimeters. See visual guides for 1/4″, 3/8″, 1/2″, 5/8″, and more, to avoid cutting errors in your sewing projects.
Convert between nautical miles, statute miles, kilometers, and knots to mph/kmh. Essential for navigation.
Convert popular pet bird ages (budgie, cockatiel, macaw) to human years. Lifespan reference included. Fun educational tool.
Convert any text to upside down (flipped) characters using Unicode mappings. Copy and paste to social media. 100% local, no data sent.
Approximate conversion from eyeglass prescription to contact lens power. Uses vertex distance formula. For educational purposes only, consult your optometrist.
Select a local font and see all its metrics: ascent, descent, x‑height, and supported features. Typography deep dive.
Fill in a form and see the FormData object as JSON. Perfect for debugging multipart form submissions. Client-side.
Enter L*a*b* values and see the corresponding RGB and hex color. Useful for advanced color manipulation.
Analyze a monophonic audio recording and convert the pitch into a MIDI file. Perfect for capturing musical ideas. Client-side.
Change the bit depth of a WAV file without leaving the browser. Dithering option included. For audio engineers.
Change the sample rate of an audio file (e.g., 48kHz to 44.1kHz) without leaving the browser. Ideal for podcast prep.
Parse an SVG path’s d attribute and list all the commands and absolute coordinates. Convert relative to absolute. Local.
Convert hex or RGB to CIELAB L*a*b* values. Understand perceptual lightness and color opponents. Local math.
Type any character and see how it renders in different font stacks. Detect missing glyphs and fallback behavior.
Convert any image into colored ASCII art using divs with background colors. Creates a stunning text‑based replica. View & copy HTML.
Type or paste Korean Hangul and see the revised romanization. Also works backwards for basic words. Study aid.
Enter a Kelvin value (1000‑40000) and see the approximate white‑balance color. Photography and lighting reference.
Convert a numeric amount into English words, perfect for writing checks or legal documents. Supports USD/GBP styles.
Encode short audio clips into Base64 data URIs for direct embedding in HTML5 <audio> tags. No external files needed.
Translate English text to Pig Latin and decode back. A classic word game for all ages. Rules-based translation runs in your browser.
Convert audio files between popular formats like WAV, MP3, and OGG directly in the browser. No upload, fast encoding using WebAudio and ffmpeg wasm.
Translate hexadecimal numbers to decimal integers. Instantly see the magnitude. A simple, private utility for developers and mathematicians.
Easily convert JSON data arrays into CSV format for Excel or database import. Handles nested structures with flattening options. All conversions happen locally, no data uploaded.
Convert angles between degrees, radians, and grads. Quick reference for mathematics and engineering. Simple and ad-free.
Convert speed units such as miles per hour, kilometers per hour, knots, and meters per second. Accurate and quick, works offline in your browser.
Convert Unix timestamps to human-readable dates and vice versa. Supports seconds and milliseconds. Ideal for developers debugging time-related code.
Convert any image into beautiful ASCII art. Adjust brightness and character set for the best effect. Share text-based pictures. Runs entirely in the browser.