Use Box Drawing Generator

Enter your data below to use the Box Drawing Generator

📌 Try these examples:
RESULT

Last updated

Unicode Box Drawing Characters

Unicode includes a dedicated block of box drawing characters (U+2500–U+257F) for creating text-based diagrams, tables, and UI elements in terminals. These characters include horizontal and vertical lines, corners, T-junctions, and cross intersections in both single and double line styles.

Box Drawing Character Reference

CharacterUnicodeName
U+2500Horizontal line
U+2502Vertical line
U+250CTop-left corner
U+2510Top-right corner
U+2514Bottom-left corner
U+2518Bottom-right corner
U+251CLeft T-junction
U+2524Right T-junction
U+252CTop T-junction
U+2534Bottom T-junction
U+253CCross

Drawing a Box in JavaScript

JavaScript
function drawBox(text, padding = 1) {
  const lines = text.split('
');
  const width = Math.max(...lines.map(l => l.length)) + padding * 2;
  const pad = ' '.repeat(padding);
  const top    = '┌' + '─'.repeat(width) + '┐';
  const bottom = '└' + '─'.repeat(width) + '┘';
  const body   = lines.map(l => '│' + pad + l.padEnd(width - padding) + '│');
  return [top, ...body, bottom].join('
');
}

console.log(drawBox('Hello
World'));
// ┌───────┐
// │ Hello │
// │ World │
// └───────┘

Frequently Asked Questions

Simply enter your data, click the process button, and get instant results. All processing happens in your browser for maximum privacy and security.